/* Northline Plumbing & Heating. Website by In Plain Cite.
   Edit the tokens in :root first when adapting for a client. */
@font-face { font-family: "Libre Franklin"; src: url("assets/fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("assets/fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("assets/fonts/libre-franklin-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #12332f;          /* brand deep green: header, dark bands, headings */
  --ink-deep: #0b2421;     /* darkest surfaces */
  --accent: #f2b544;       /* amber: primary actions, area highlight */
  --accent-hover: #f6c66a;
  --on-accent: #1a1a1a;    /* text on amber */
  --paper: #f7f5ef;        /* page background */
  --paper-deep: #eeebe2;   /* alternate bands */
  --white: #ffffff;
  --text: #1d2b29;         /* body copy */
  --muted: #4b5955;        /* supporting copy, 7:1 on paper */
  --on-dark: #ffffff;
  --on-dark-muted: #d3dfdb;/* supporting copy on dark green, 9:1 */
  --line: #d9d5ca;
  --focus: #1f6feb;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(11, 36, 33, .16);
  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* Skip link */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--ink); font-weight: 700; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-size: 20px; color: var(--ink); }
.brand-name span { font-size: 13px; color: var(--muted); font-weight: 600; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 16px; font-weight: 600; color: var(--text); border-radius: 6px; }
.primary-nav a:hover { color: var(--ink); background: var(--paper); }
.primary-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 2px solid transparent; border-radius: 8px; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.button svg { width: 18px; height: 18px; flex: 0 0 18px; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button-dark { background: var(--ink); color: var(--on-dark); }
.button-dark:hover { background: var(--ink-deep); }
.button-ghost { border-color: rgba(255,255,255,.7); color: var(--on-dark); background: transparent; }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.button-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--ink); color: var(--on-dark); }
.button-small { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* Hero */
.hero { position: relative; color: var(--on-dark); isolation: isolate; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 26, 24, .88) 0%, rgba(8, 26, 24, .74) 48%, rgba(8, 26, 24, .45) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero h1 { color: var(--on-dark); }
.hero h1 .area { color: var(--accent); }
.hero-lead { font-size: 19px; color: var(--on-dark-muted); max-width: 34em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero .eyebrow { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--on-dark); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-size: 15px; color: var(--on-dark-muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 18px; }

/* Quote card */
.quote-card { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.quote-card h2 { font-size: 26px; margin-bottom: 4px; }
.quote-card .card-intro { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.field .req { color: #9a3412; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #8a948f; border-radius: 8px; background: var(--white); color: var(--text); font: inherit; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-status { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; min-height: 1.4em; }
.quote-card .button { width: 100%; }

/* Trust bar */
.trust-bar { background: var(--ink); color: var(--on-dark); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; margin-block: 0; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.trust-list svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--accent); }

/* Sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-deep); }
.section-white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.section-head p { max-width: 36em; color: var(--muted); margin: 0; }
.kicker { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a5a00; }
.lead { font-size: 19px; color: var(--muted); }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.service-card p { font-size: 16px; color: var(--muted); }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }
.card-link svg { width: 16px; height: 16px; flex: 0 0 16px; color: #8a5a00; transition: transform .2s ease; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-link:hover svg { transform: translateX(3px); }
svg { max-width: 100%; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font-weight: 700; }
.steps strong { display: block; color: var(--ink); font-size: 18px; }
.steps span { color: var(--muted); font-size: 16px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 0; }
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: #c98a12; }
.stars svg { width: 20px; height: 20px; }
.review blockquote { margin: 0 0 12px; font-size: 17px; }
.review { display: flex; flex-direction: column; }
.review blockquote { flex: 1; }
.review figcaption { font-size: 15px; color: var(--muted); }
.review figcaption strong { color: var(--ink); }
.review figcaption span { display: block; margin-top: 2px; font-size: 14px; }

/* Areas */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 0 0 24px; list-style: none; }
.area-grid li { padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.area-grid small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* Area map */
.area-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.map-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow); }
.area-map { display: block; width: 100%; height: auto; font-family: var(--font); }
.map-bg { fill: #ece8dd; }
.map-gridline { stroke: #e2ddd0; stroke-width: 1; }
.map-road { fill: none; stroke: #ffffff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map-ring { fill: rgba(242, 181, 68, .1); stroke: #c98a12; stroke-width: 2.5; stroke-dasharray: 8 7; }
.map-ring-label { fill: #8a5a00; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; paint-order: stroke; stroke: #ece8dd; stroke-width: 6px; }
.map-town circle { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.map-town text { fill: var(--ink); font-size: 15px; font-weight: 600; paint-order: stroke; stroke: #ece8dd; stroke-width: 5px; stroke-linejoin: round; }
.map-centre circle:last-of-type { fill: var(--accent); stroke: var(--ink); stroke-width: 3.5; }
.map-centre .map-pulse { fill: rgba(242, 181, 68, .28); stroke: none; }
.map-centre text { fill: var(--ink); font-size: 22px; font-weight: 700; paint-order: stroke; stroke: #ece8dd; stroke-width: 6px; stroke-linejoin: round; }
.town-list { list-style: none; padding: 0; margin: 0 0 24px; columns: 2; column-gap: 28px; }
.town-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-weight: 600; }
.town-list small { color: var(--muted); font-weight: 400; font-size: 15px; }
.breadcrumb.breadcrumb-light { color: var(--muted); }
.breadcrumb.breadcrumb-light a { color: var(--ink); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-deep); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; max-width: 42em; }

/* CTA band */
.cta-band { position: relative; color: var(--on-dark); isolation: isolate; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 26, 24, .84); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 72px 0; }
.cta-inner h2 { color: var(--on-dark); margin-bottom: 8px; }
.cta-inner p { color: var(--on-dark-muted); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page hero (inner pages) */
.page-hero { position: relative; color: var(--on-dark); isolation: isolate; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 26, 24, .9), rgba(8, 26, 24, .6)); }
.page-hero .container { padding: 64px 0 60px; }
.page-hero h1 { color: var(--on-dark); font-size: clamp(32px, 4.6vw, 48px); }
.page-hero p { color: var(--on-dark-muted); font-size: 19px; max-width: 36em; margin: 0; }
.breadcrumb { font-size: 15px; margin-bottom: 14px; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark); }

/* Service detail */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail:nth-child(even) .service-detail-media { order: 2; }
.service-detail-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks svg { width: 22px; height: 22px; color: #1f7a4d; margin-top: 2px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.contact-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 14px; color: var(--muted); }
.contact-list a, .contact-list strong { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.notice { padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.site-footer h2 { color: var(--on-dark); font-size: 17px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .brand-name strong { color: var(--on-dark); }
.site-footer .brand-name span { color: var(--on-dark-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone span { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; top: 0; width: min(86vw, 360px); flex-direction: column; align-items: stretch; gap: 0; padding: 96px 20px 24px; background: var(--white); box-shadow: var(--shadow); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; z-index: 60; }
  .primary-nav.is-open { transform: none; visibility: visible; }
  .primary-nav a { min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 16px; }
  .menu-toggle { position: relative; z-index: 70; }
  .header-actions .button { display: none; }
  .hero-grid, .split, .service-detail, .contact-grid, .area-layout { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail-media { order: 0; }
  .hero-grid { padding: 48px 0 56px; gap: 32px; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 26, 24, .82), rgba(8, 26, 24, .9)); }
  .review-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .cta-inner { flex-direction: column; align-items: start; }
  body { padding-bottom: 72px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .mobile-bar .button { min-height: 50px; padding: 0 12px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .service-grid, .trust-list, .area-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .town-list { columns: 1; }
  .quote-card { padding: 22px 18px; }
  .hero-actions .button { flex: 1 1 100%; }
  .header-phone { display: none; }
  .brand-name span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
