/* Precision Autoworks UK — design replica system
   Tokens extracted from precisionautoworksuk.co.uk via designlang */
:root {
  --paw-red: #ab0b09;
  --paw-red-dark: #540100;
  --paw-green: #25d366;
  --paw-black: #000000;
  --paw-near-black: #0d0d0d;
  --paw-grey: #777777;
  --paw-light: #ececec;
  --paw-white: #ffffff;
  --paw-radius-sm: 4px;
  --paw-radius-lg: 15px;
  --paw-radius-xl: 20px;
  --paw-shadow-card: rgba(0,0,0,.06) 0 1px 6px 0, rgba(0,0,0,.16) 0 2px 32px 0;
  --paw-shadow-img: rgba(0,0,0,.15) 0 30px 60px 0;
  --paw-max: 1100px;
}

html { scroll-behavior: smooth; }
/* hard guard against any child forcing horizontal scroll (clip keeps position:sticky working) */
html, body { overflow-x: clip; }
body { font-family: 'Montserrat', sans-serif; font-size: 18px; line-height: 1.55; color: var(--paw-black); margin: 0; background: var(--paw-white); }
body h1, body h2, body h3, body h4, body h5 { font-family: 'Montserrat', sans-serif; margin: 0 0 .5em; line-height: 1.15; }
/* !important needed to beat Astra's .entry-content heading rules */
body .entry-content h1, body h1 { font-size: clamp(40px, 5.2vw, 68px) !important; font-weight: 600 !important; }
body .entry-content h2, body h2 { font-size: clamp(30px, 3.5vw, 45px) !important; font-weight: 800 !important; }
body .entry-content h3, body h3 { font-size: clamp(24px, 2.6vw, 34px) !important; font-weight: 700 !important; }
body .entry-content h4, body h4 { font-size: 25.5px !important; font-weight: 600 !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
/* Astra underlines entry-content links — kill inside replica components, re-add where original has them */
.entry-content [class^="paw-"] a, .entry-content a[class^="paw-"],
[class^="paw-"] a, .paw-service-card, .paw-service-card * { text-decoration: none !important; }
.paw-footer-col a, .paw-contact-line { text-decoration: underline !important; text-underline-offset: 4px; }
svg { width: 1em; height: 1em; vertical-align: -0.12em; }

/* ---------- Buttons ---------- */
.paw-btn {
  display: inline-block; background: var(--paw-red); color: #fff !important; font-weight: 600;
  font-size: 15px; padding: 13px 28px; border-radius: var(--paw-radius-sm); border: none;
  cursor: pointer; transition: background .25s ease, transform .15s ease; letter-spacing: .2px;
}
.paw-btn:hover { background: var(--paw-red-dark); transform: translateY(-1px); }
.paw-btn-ghost { background: rgba(20,20,20,.66); border: 1px solid rgba(255,255,255,.28); }
.paw-btn-ghost:hover { background: rgba(0,0,0,.9); }

/* ---------- Top bar ---------- */
.paw-topbar { background: var(--paw-red); color: #fff; font-size: 13px; font-weight: 500; }
.paw-topbar-inner { max-width: var(--paw-max); margin: 0 auto; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.paw-topbar a { color: #fff; margin-right: 14px; }
.paw-topbar-contact a { margin-right: 0; margin-left: 18px; white-space: nowrap; }
.paw-topbar svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.paw-header { background: var(--paw-black); position: sticky; top: 0; z-index: 900; }
.paw-header-inner { max-width: var(--paw-max); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.paw-logo img { height: 84px; width: auto; display: block; }
.paw-nav { display: flex; align-items: center; gap: 28px; }
.paw-nav > a, .paw-nav-item > a { color: #fff; font-weight: 600; font-size: 15px; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
.paw-nav > a.is-active { text-decoration: underline; text-underline-offset: 6px; }
.paw-nav a:focus-visible, .paw-btn:focus-visible, .paw-burger:focus-visible { outline: 2px solid var(--paw-red); outline-offset: 3px; border-radius: 3px; }
.paw-nav a:focus:not(:focus-visible), .paw-burger:focus:not(:focus-visible) { outline: none; }
.paw-nav > a:hover, .paw-nav-item > a:hover { color: var(--paw-light); }
.paw-nav-item { position: relative; }
.paw-sub {
  position: absolute; top: 100%; left: 0; background: #111; min-width: 230px; display: flex;
  flex-direction: column; padding: 8px 0; border-radius: 0 0 8px 8px; box-shadow: var(--paw-shadow-card);
  border-top: 2px solid var(--paw-red);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.paw-nav-item:hover .paw-sub, .paw-nav-item.open .paw-sub, .paw-nav-item:focus-within .paw-sub {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.paw-nav-item > a svg { transition: transform .18s ease; }
.paw-nav-item:hover > a svg, .paw-nav-item.open > a svg { transform: rotate(180deg); }
.paw-sub a { color: #eee; padding: 10px 18px; font-size: 14px; font-weight: 500; }
.paw-sub a:hover { background: var(--paw-red); color: #fff; }
.paw-btn-nav { padding: 10px 20px; border-radius: var(--paw-radius-sm); }
.paw-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.paw-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .22s ease, opacity .18s ease; }
.paw-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.paw-burger.open span:nth-child(2) { opacity: 0; }
.paw-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.paw-hero {
  position: relative; background-size: cover; background-position: center; color: #fff;
  text-align: center; padding: clamp(80px, 14vw, 170px) 20px;
}
.paw-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.paw-hero > * { position: relative; }
.paw-hero h1 { color: #fff; margin: 0 auto .4em; max-width: 1000px; }
.paw-hero .paw-hero-divider { width: 90px; height: 2px; background: rgba(255,255,255,.6); margin: 26px auto; }
.paw-hero p { max-width: 760px; margin: 0 auto 14px; font-size: 19px; }
.paw-hero .paw-hero-bold { font-weight: 700; font-size: 19px; margin-bottom: 30px; }
.paw-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Features strip ---------- */
.paw-features { display: flex; justify-content: center; gap: clamp(30px, 8vw, 110px); padding: 46px 20px; flex-wrap: wrap; background: #fff; }
.paw-feature h4 { margin: 0; position: relative; padding-top: 14px; }
.paw-feature h4::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 3px; background: var(--paw-red); }

/* ---------- Generic sections ---------- */
.paw-section { max-width: var(--paw-max); margin: 0 auto; padding: clamp(50px, 8vw, 90px) 20px; }
.paw-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.paw-split img { border-radius: var(--paw-radius-lg); box-shadow: var(--paw-shadow-img); }
.paw-badge { display: inline-block; background: var(--paw-red); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 1px; padding: 6px 12px; margin: 12px 0 18px; }
.paw-check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.paw-check-list li { padding-left: 30px; position: relative; margin-bottom: 10px; font-weight: 500; }
.paw-check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--paw-red); font-weight: 800; }

/* ---------- Dark split (why choose home) ---------- */
.paw-dark-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--paw-near-black); color: #fff; align-items: stretch; }
.paw-dark-split-img { background-size: cover; background-position: center; min-height: 420px; }
.paw-dark-split-body { padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.paw-dark-split-body h2 { color: #fff; position: relative; padding-bottom: 18px; }
.paw-dark-split-body h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 70px; height: 2px; background: rgba(255,255,255,.5); }
.paw-dark-split-body .paw-check-list li::before { color: var(--paw-green); }

/* ---------- Services grid ---------- */
.paw-services { background: #f5f5f5; padding: clamp(50px, 8vw, 90px) 20px; text-align: center; }
.paw-services > p { max-width: 900px; margin: 0 auto 44px; }
.paw-services-grid { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; max-width: var(--paw-max); margin: 0 auto; }
.paw-service-card {
  background: var(--paw-near-black); color: #fff; border-radius: var(--paw-radius-lg); padding: 30px 24px;
  width: 205px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px;
  text-align: left; background-size: cover; background-position: center; position: relative; overflow: hidden;
  box-shadow: var(--paw-shadow-card); transition: transform .25s ease;
}
.paw-service-card:hover { transform: translateY(-5px); }
.paw-service-card::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.paw-service-card > * { position: relative; }
body .entry-content .paw-service-card h3, body .paw-service-card h3 { font-size: 20px !important; font-weight: 700; color: #fff; margin: 0; overflow-wrap: normal; word-break: normal; hyphens: none; line-height: 1.25; }
.paw-service-card p { font-size: 14px; margin: 0; color: #e5e5e5; flex: 1; }
.paw-service-card .paw-btn { align-self: flex-start; padding: 10px 20px; font-size: 13px; }

/* ---------- Reviews ---------- */
.paw-reviews { padding: clamp(50px, 8vw, 80px) 20px; max-width: var(--paw-max); margin: 0 auto; }
.paw-reviews-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.paw-reviews-excellent { font-weight: 800; font-size: 22px; }
.paw-stars { color: #fbbc05; display: inline-flex; gap: 2px; }
.paw-stars svg { width: 20px; height: 20px; }
.paw-stars-sm svg { width: 15px; height: 15px; }
.paw-reviews-head > svg { width: 26px; height: 26px; }
.paw-reviews-track { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #d8d8d8 transparent; }
.paw-reviews-track::-webkit-scrollbar { height: 6px; }
.paw-reviews-track::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 100px; }
.paw-reviews-track::-webkit-scrollbar-track { background: transparent; }
.paw-review-card {
  min-width: 290px; max-width: 290px; background: #fff; border: 1px solid #e5e5e5; border-radius: var(--paw-radius-lg);
  padding: 20px; box-shadow: var(--paw-shadow-card); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
}
.paw-review-top { display: flex; gap: 12px; align-items: center; }
.paw-review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--paw-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none;
}
.paw-review-card p { font-size: 14px; color: #444; margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.paw-review-card small { color: var(--paw-grey); }
.paw-google-word { font-weight: 600; }

/* ---------- Areas ---------- */
.paw-areas { background: var(--paw-black); color: #fff; text-align: center; padding: clamp(60px, 9vw, 100px) 20px; }
.paw-areas h2 { color: #fff; }
.paw-areas-intro { color: #ccc; margin-bottom: 36px; }
.paw-areas-grid { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; max-width: 800px; margin: 0 auto 40px; }
.paw-areas-grid span { border: 1px solid rgba(255,255,255,.25); border-radius: 100px; padding: 9px 22px; font-size: 15px; font-weight: 500; }

/* ---------- Contact ---------- */
.paw-contact { position: relative; background-size: cover; background-position: center; padding: clamp(50px, 8vw, 90px) 20px; color: #fff; }
.paw-contact-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(5,5,15,.78), rgba(5,5,15,.78)); }
.paw-contact-inner { position: relative; max-width: var(--paw-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.paw-contact-info h2 { color: #fff; position: relative; padding-bottom: 16px; }
.paw-contact-info h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 70px; height: 2px; background: rgba(255,255,255,.5); }
.paw-contact-info h3 { color: #fff; margin-top: 26px; }
.paw-hours { width: 100%; max-width: 330px; background: #fff; color: #222; border-collapse: collapse; font-size: 14px; margin: 10px 0 26px; border-radius: 6px; overflow: hidden; }
.paw-hours td { padding: 9px 14px; border-bottom: 1px solid #eee; }
.paw-hours td:last-child { text-align: right; font-weight: 600; }
.paw-contact-line { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; margin-bottom: 12px; text-decoration: underline; text-underline-offset: 4px; }
.paw-contact-social { display: flex; gap: 20px; margin-top: 22px; }
.paw-contact-social svg { width: 24px; height: 24px; }
.paw-contact-form { background: #fff; color: #222; border-radius: var(--paw-radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--paw-shadow-img); }
.paw-contact-form h2 { color: #111; }

/* WPForms restyle to match */
.paw-contact-form .wpforms-field { margin-bottom: 14px !important; }
.paw-contact-form .wpforms-field input[type=text],
.paw-contact-form .wpforms-field input[type=email],
.paw-contact-form .wpforms-field input[type=tel],
.paw-contact-form .wpforms-field textarea {
  background: #f0f0f1; border: 1px solid #e2e2e2; border-radius: 4px; width: 100%; padding: 11px 12px; font-size: 14px; font-family: 'Montserrat', sans-serif;
}
.paw-contact-form .wpforms-field-label { font-weight: 700 !important; font-size: 15px !important; }
.paw-contact-form .wpforms-field-label .wpforms-required-label { color: var(--paw-red); font-style: italic; font-weight: 500; }
.paw-contact-form ul { list-style: none; padding: 0; margin: 0; }
.paw-contact-form ul li { margin: 4px 0; font-size: 13.5px; }
.paw-contact-form ul.wpforms-checkbox-2-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.paw-contact-form button[type=submit] {
  background: var(--paw-red) !important; color: #fff !important; border: 0 !important; border-radius: 4px !important;
  width: 100%; padding: 13px !important; font-weight: 700 !important; font-size: 15px !important; cursor: pointer; font-family: 'Montserrat', sans-serif !important;
}
.paw-contact-form button[type=submit]:hover { background: var(--paw-red-dark) !important; }

/* ---------- Affiliates ---------- */
.paw-affiliates { background-size: auto; background-repeat: repeat; background-color: #0a0a0a; color: #fff; text-align: center; padding: clamp(60px, 9vw, 100px) 20px; }
.paw-affiliates h2 { color: #fff; max-width: 850px; margin: 0 auto 22px; }
.paw-affiliates > p { max-width: 640px; margin: 0 auto 34px; color: #ddd; font-size: 15.5px; }
.paw-affiliates h4 { color: #fff; position: relative; display: inline-block; padding-bottom: 10px; margin-bottom: 14px; }
.paw-affiliates h4::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 2px; background: rgba(255,255,255,.5); }
.paw-affiliates-sub { color: #ccc; }
.paw-affiliates-logos { display: flex; gap: 50px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 30px 0 50px; }
.paw-affiliates-logos img { max-height: 190px; width: auto; }
.paw-provider-logos { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; }
.paw-provider-logos img { max-height: 110px; width: auto; }

/* ---------- Why numbered ---------- */
.paw-why-numbered { max-width: var(--paw-max); margin: 0 auto; padding: clamp(50px, 8vw, 90px) 20px; }
.paw-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 34px; }
.paw-why-item { border-left: 3px solid var(--paw-red); padding-left: 18px; }
.paw-why-num { font-size: 34px; font-weight: 800; color: var(--paw-red); display: block; margin-bottom: 6px; }
.paw-why-item h5 { font-size: 16px; font-weight: 600; margin: 0; line-height: 1.4; }

/* ---------- Process steps ---------- */
.paw-process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 30px 0 36px; }
.paw-process-step { background: #fff; border: 1px solid #eee; border-radius: var(--paw-radius-lg); padding: 24px 20px; box-shadow: var(--paw-shadow-card); }
.paw-process-step strong { display: block; margin-bottom: 8px; font-size: 16px; }
.paw-process-step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--paw-red); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.paw-process-step p { font-size: 14px; margin: 0; color: #555; }

/* ---------- Footer ---------- */
.paw-footer { background: var(--paw-near-black); color: #ddd; }
.paw-footer-inner { max-width: var(--paw-max); margin: 0 auto; padding: clamp(40px, 6vw, 70px) 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.paw-footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.paw-footer-col h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.paw-footer-col a { color: #ccc; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.25); overflow-wrap: anywhere; }
.paw-footer-col a:hover { color: #fff; }
.paw-imi-badge { max-width: 120px; margin-bottom: 10px; }
.paw-footer-bar { background: var(--paw-red); color: #fff; font-size: 13px; }
.paw-footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 20px; flex-wrap: wrap; }
.paw-footer-social { display: inline-flex; gap: 16px; }
.paw-footer-social svg { width: 16px; height: 16px; }

/* ---------- WhatsApp float ---------- */
.paw-whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 54px; height: 54px; border-radius: 50%;
  background: var(--paw-green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: rgba(0,0,0,.3) 0 6px 20px; transition: transform .2s ease;
}
.paw-whatsapp-float:hover { transform: scale(1.08); }
.paw-whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Blog ---------- */
.paw-article { max-width: 780px; margin: 0 auto; padding: 50px 20px; }
.paw-article h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
/* single posts + archives: constrain to readable column (global reset above unsets Astra widths) */
body.single .ast-container, body.blog .ast-container, body.archive .ast-container {
  max-width: 860px !important; padding: 40px 20px !important; margin: 0 auto;
}
body.single h1.entry-title { font-size: clamp(30px, 4.5vw, 46px) !important; font-weight: 800 !important; }
body.single .entry-content a, body.blog a.ast-button, body.archive .entry-title a { color: var(--paw-red); }
body.single .wp-post-image, body.blog .wp-post-image, body.archive .wp-post-image { border-radius: var(--paw-radius-lg); }
/* blog grid: title size that fits the column without mid-word breaks */
body.blog .entry-title, body.archive .entry-title { font-size: 22px !important; line-height: 1.3 !important; overflow-wrap: normal; word-break: keep-all; }
body.blog .ast-container, body.archive .ast-container { max-width: 1100px !important; }
/* no comments UI anywhere (original site has none) */
.comments-area, #comments, .comment-respond { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .paw-topbar-inner { justify-content: center; }
  .paw-topbar-contact a { margin-left: 10px; }
  .paw-topbar-contact a:first-child { margin-left: 0; }
  .paw-burger { display: block; }
  .paw-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #050505;
    flex-direction: column; align-items: stretch; padding: 8px 22px 34px; gap: 0;
    min-height: 100vh; box-shadow: 0 30px 40px rgba(0,0,0,.5);
  }
  .paw-nav.open { display: flex; }
  .paw-nav > a, .paw-nav-item > a { padding: 15px 2px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.09); width: 100%; justify-content: space-between; }
  .paw-nav > a.paw-btn-nav { border-bottom: 0; margin-top: 18px; justify-content: center; padding: 14px; }
  .paw-sub {
    position: static; box-shadow: none; border-radius: 0; border-top: 0; padding: 0 0 4px 14px;
    opacity: 1; visibility: hidden; transform: none; pointer-events: none; display: none; transition: none;
  }
  .paw-nav-item.open .paw-sub { display: flex; visibility: visible; pointer-events: auto; }
  .paw-sub a { padding: 12px 10px; font-size: 15px; border-left: 2px solid rgba(255,255,255,.12); }
  .paw-sub a:hover { border-left-color: var(--paw-red); }
  .paw-split, .paw-dark-split, .paw-contact-inner { grid-template-columns: 1fr; }
  .paw-why-grid { grid-template-columns: 1fr 1fr; }
  .paw-process { grid-template-columns: 1fr 1fr; }
  .paw-logo img { height: 62px; }
  .paw-footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .paw-contact-line { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .paw-topbar-contact a:last-child { display: none; }
  .paw-why-grid, .paw-process { grid-template-columns: 1fr; }
  .paw-service-card { width: 100%; min-height: 0; }
  .paw-contact-form ul.wpforms-checkbox-2-columns { grid-template-columns: 1fr; }
  .paw-features { flex-direction: column; align-items: center; gap: 26px; }
  .paw-hero-ctas .paw-btn { width: min(280px, 90%); }
}
