/* Local conveyancing pages only (Manchester, Liverpool, Wirral, Scotland).
   Linked from those four pages; must not be added to global style.css. */

body.page-local #quote-options{scroll-margin-top:110px}

/* --- Hero typography and spacing ---
   Revised desktop target (Tom, 11 Nov): only the mid chooser H2
   “What do you need a quote for?” needs to sit near the bottom of a
   typical 1280×800 first screen. The chooser cards do not need to fit.
   Keep comfortable hierarchy around the eyebrow, H1 and quote prompt;
   do not cram three type sizes together, and do not return to the old
   giant vertical gaps. Hero image sizes stay reduced. */

body.page-local .hero-grid{min-height:0;align-items:start}
body.page-local .hero-copy{padding:28px 36px 22px 0;max-width:600px}
body.page-local .hero-copy .divider{margin:12px 0 18px}
body.page-local .hero .lead{margin:0 0 14px;font-size:15px;line-height:1.6}
body.page-local .hero-copy .eyebrow{
  letter-spacing:.2em;
  font-size:11px;
  line-height:1.45;
  margin:0 0 14px;
  max-width:100%;
}
body.page-local .hero h1{
  font-size:clamp(2.05rem,2.8vw,2.5rem);
  line-height:1.2;
  margin:0 0 16px;
}
body.page-local .hero-quote-intro{
  margin:0 0 16px;
  font-weight:600;
  color:var(--green2);
}
body.page-local .hero-quote-types{margin:0 0 14px;gap:10px}
body.page-local .hero-contact{margin-top:8px}
body.page-local .hero-image{height:400px;max-height:42vh;min-height:280px;width:100%;position:relative;overflow:hidden}
body.page-local a.local-eyebrow-link,
body.page-local a.mcr-eyebrow-link{display:inline-block;text-decoration:none;color:inherit}
body.page-local a.local-eyebrow-link:hover,
body.page-local a.local-eyebrow-link:focus-visible,
body.page-local a.mcr-eyebrow-link:hover,
body.page-local a.mcr-eyebrow-link:focus-visible{text-decoration:underline;text-underline-offset:3px}

/* Content-width quote button. .hero-copy is a column flex with default
   align-items:stretch, which previously stretched this into a full-column
   bar. align-self:flex-start keeps it at natural width, like the homepage
   control, with no heavy shadow. min-height 44px for touch. */
body.page-local .ads-big-cta{
  display:inline-block;
  align-self:flex-start;
  width:auto;
  max-width:100%;
  box-sizing:border-box;
  margin:0 0 16px;
  padding:12px 26px;
  min-height:44px;
  background:#0b3d2e;
  color:#fff !important;
  font-weight:700;
  font-size:16px;
  line-height:1.25;
  border-radius:8px;
  text-decoration:none;
  border-bottom:2px solid #b99b59;
  box-shadow:none;
  transition:background .2s,color .2s;
}
body.page-local .ads-big-cta:hover,
body.page-local .ads-big-cta:focus-visible{
  background:#b99b59;
  color:#0b3d2e !important;
  outline:none;
}

/* Mid chooser and lower sections: enough air after the trust strip that
   the H2 lands near the desktop fold, without a large empty band. */
body.page-local .section-lg{padding:28px 0 40px}
body.page-local .section-lg .section-title h2{margin-top:12px}
body.page-local .section-lg .steps,
body.page-local .section-lg .grid-4{margin-top:16px}
body.page-local .ready-bar{padding:32px 0}
body.page-local .ready-bar .inner{gap:24px}
body.page-local .local-lead{margin:20px auto 0;max-width:760px;font-size:16px;line-height:1.7;color:var(--text-soft)}
body.page-local .local-lead a{color:var(--green2);font-weight:600}
body.page-local .trust-strip{padding:0}

/* At-a-glance + advice cards (keep the facts, stop the wall of text) */
body.page-local .local-glance{
  background:#fff;
  border:1px solid var(--border-soft);
  border-radius:14px;
  padding:24px 28px;
  box-shadow:var(--shadow);
  max-width:900px;
  margin:0 auto;
}
body.page-local .local-glance h2{
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(22px,2.4vw,28px);
  margin:0 0 14px;
  color:var(--green2);
  font-weight:600;
}
body.page-local .local-glance ul{margin:0;padding:0;list-style:none;display:grid;gap:10px}
body.page-local .local-glance li{
  margin:0;
  padding:10px 12px 10px 14px;
  border-left:3px solid var(--gold);
  background:var(--cream-2);
  border-radius:0 8px 8px 0;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.6;
}
body.page-local .local-glance li strong{color:var(--text)}

body.page-local .local-advice-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  max-width:1100px;
  margin:0 auto;
}
body.page-local .local-advice-card{
  background:#fff;
  border:1px solid var(--border-soft);
  border-radius:14px;
  padding:22px 24px;
  box-shadow:var(--shadow);
}
body.page-local .local-advice-card h2{
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(20px,2.2vw,24px);
  margin:0 0 10px;
  color:var(--green2);
  font-weight:600;
}
body.page-local .local-advice-card p,
body.page-local .local-advice-card li{
  font-size:15px;
  line-height:1.65;
  color:var(--text-soft);
  margin:8px 0;
}
body.page-local .local-advice-card ul{padding-left:18px;margin:8px 0}
body.page-local .local-advice-card a{color:var(--green2);font-weight:600;text-underline-offset:3px}
body.page-local .local-advice-card a:hover,
body.page-local .local-advice-card a:focus-visible{color:var(--gold)}

/* Accessible FAQ accordion */
body.page-local .local-faq-wrap{max-width:800px;margin:0 auto}
body.page-local .local-faq-wrap > h2{
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(22px,2.4vw,28px);
  margin:0 0 16px;
  color:var(--green2);
  font-weight:600;
}
body.page-local details.local-faq{
  background:#F8F6F1;
  border-left:4px solid #C19A4D;
  border-radius:4px;
  padding:0 20px;
  margin:10px 0;
}
body.page-local details.local-faq summary{
  cursor:pointer;
  font-family:'Playfair Display',Georgia,serif;
  font-size:18px;
  font-weight:600;
  color:var(--green2);
  list-style:none;
  padding:16px 0;
  line-height:1.35;
}
body.page-local details.local-faq summary::-webkit-details-marker{display:none}
body.page-local details.local-faq summary::after{
  content:"\002B";
  float:right;
  font-weight:700;
  color:var(--gold);
  margin-left:12px;
}
body.page-local details.local-faq[open] summary::after{content:"\2212"}
body.page-local details.local-faq summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
body.page-local details.local-faq p{margin:0 0 16px;font-size:15px;line-height:1.65;color:var(--text-soft)}

/* Mid chooser cards: homepage-like colour change on hover/focus */
body.page-local a.card{
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
body.page-local a.card:hover,
body.page-local a.card:focus-visible{
  background:var(--green2);
  border-color:var(--green2);
  color:#fff;
  transform:translateY(-3px);
  box-shadow:var(--shadow-lg);
  outline:none;
}
body.page-local a.card:hover h3,
body.page-local a.card:focus-visible h3,
body.page-local a.card:hover p,
body.page-local a.card:focus-visible p,
body.page-local a.card:hover .card-cta,
body.page-local a.card:focus-visible .card-cta{color:#fff}


/* Scotland about-band: keep the copy, cut the empty space */
body.page-local-scotland .about-band.section-lg{padding:40px 0}
body.page-local-scotland .about-band h2.serif{font-size:clamp(26px,3.2vw,38px) !important;margin:12px 0 14px !important}
body.page-local-scotland .about-band a.btn{margin-top:16px !important}

@media (max-width:1024px){
  body.page-local .hero-copy{padding:24px 0 20px;max-width:none}
  body.page-local .hero-image{height:200px;max-height:28vh;min-height:160px}
  body.page-local .section-lg{padding:28px 0}
  body.page-local .local-advice-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  body.page-local .hero-copy{padding:20px 0 16px}
  body.page-local .hero h1{font-size:clamp(1.85rem,7vw,2.25rem)}
  body.page-local .hero-image{height:180px;max-height:200px;min-height:160px}
  body.page-local .section-lg{padding:24px 0}
  body.page-local .ads-big-cta{display:inline-block;align-self:flex-start;width:auto;padding:12px 24px;font-size:16px}
  body.page-local .local-glance,
  body.page-local .local-advice-card{padding:18px 16px}
  body.page-local .home-quote-btns{width:100%}
  body.page-local .home-quote-btns .btn{flex:1 1 calc(50% - 6px);justify-content:center;text-align:center}
}
@media (max-width:480px){
  body.page-local .home-quote-btns .btn{flex:1 1 100%}
}

/* Hero contact: one normal sentence, not a flex row that splits the number.
   Email stays on the same row when there is room (hero-contact already wraps). */
body.page-local .hero-contact{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 16px;
}
body.page-local .hero-call{
  display:block;
  margin:0;
  max-width:100%;
  font-size:13px;
  line-height:1.45;
  font-weight:600;
  letter-spacing:.01em;
  color:var(--text-soft);
}
body.page-local .hero-call a{
  white-space:nowrap;
}

/* Reuse the existing homepage cookie variables. Do not hard-code banner height.
   When html.ec-cookie-open is cleared, sticky returns to bottom:0. */
html.ec-cookie-open body.page-local .mobile-sticky-cta{
  bottom:var(--ec-cookie-h, 56px);
}

/* Photo credit sits on the hero image (bottom-left) so it stays visible and licensed
   without adding height below the hero. Leaves room for the Google badge on the right. */
body.page-local .hero-image .local-hero-credit{
  position:absolute;
  left:10px;
  bottom:10px;
  z-index:4;
  margin:0;
  max-width:min(280px, calc(100% - 180px));
  padding:5px 8px;
  font-size:11px;
  line-height:1.35;
  color:#fff;
  background:rgba(11,61,46,.78);
  border-radius:4px;
}
body.page-local .hero-image .local-hero-credit a{
  color:#fff;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
}
body.page-local .hero-image .local-hero-credit a:hover,
body.page-local .hero-image .local-hero-credit a:focus-visible{
  color:#f3e6c0;
}

/* Bottom ready-bar: straightforward green → gold on hover and keyboard focus.
   No hover-capability media query. :link/:visited included so a previously
   visited ToE (or other) quote link cannot keep a different colour than hover. */
body.page-local .ready-bar .home-quote-btns{
  position:relative;
  z-index:1;
}
body.page-local .ready-bar .home-quote-btns a.btn,
body.page-local .ready-bar .home-quote-btns a.btn:link,
body.page-local .ready-bar .home-quote-btns a.btn:visited{
  background:var(--green2);
  border-color:var(--green2);
  color:#fff;
  white-space:normal;
  letter-spacing:.08em;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
body.page-local .ready-bar .home-quote-btns a.btn:hover,
body.page-local .ready-bar .home-quote-btns a.btn:focus,
body.page-local .ready-bar .home-quote-btns a.btn:focus-visible{
  background:var(--gold);
  border-color:var(--gold);
  color:#fff;
  outline:none;
}

@media (max-width:720px){
  body.page-local .hero-image .local-hero-credit{
    max-width:calc(100% - 160px);
    left:8px;
    bottom:8px;
  }
}
