/* ------------------------------------------------------------------
   Halon and Refrigerant Services — site stylesheet
   HALON AND REFRIGERANT SERVICES LIMITED, company no. 02645324
   Sandycroft, Deeside

   Full-width layout: no outer box. The split masthead, the nav bar,
   every section band and the footer run edge to edge; content sits on
   a 1320px inner measure so the technical tables can breathe.
   Mustard/olive house colour with an ink blue accent.
------------------------------------------------------------------ */

:root {
  /* house colour — mustard / olive gold */
  --brand:       #6d5e10;
  /* page ground — cool light grey */
  --ground:      #e6e9ec;
  /* accent — deep ink blue */
  --accent:      #24357a;

  --brand-dk:    #4a3f0a;
  --brand-mid:   #867314;
  --brand-lit:   #bfa41f;
  --brand-pale:  #f0e9c1;
  --brand-wash:  #f7f4e1;
  --brand-band:  #f2eed0;

  --accent-lit:  #3f56a8;
  --accent-wash: #e9ecf6;

  --ink:         #21262c;
  --muted:       #5a636d;
  --line:        #b9c0c8;
  --line-soft:   #d5dae0;
  --edge:        #9aa3ad;
  --panel:       #ffffff;
  --shade:       #f2f4f6;
  --shade-2:     #e9edf1;

  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --mono: "Courier New", Courier, monospace;

  /* inner measure and gutter for the full-width layout */
  --wrap: 1320px;
  --gutter: 30px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; background: var(--brand-dk); }

body {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

a { color: var(--accent); text-decoration: underline; }
a:hover { color: var(--accent-lit); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--brand-dk);
  font-weight: 700;
}
h1 { font-size: 25px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
p  { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* ---------- full-width shell, centred inner measure ---------- */

.mast, main, .foot { width: 100%; }
main { background: var(--panel); display: block; }

.wrap {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-mid);
  display: block;
  margin-bottom: .4rem;
}
.kicker--pale { color: var(--brand-pale); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-dk); color: var(--brand-pale);
  padding: .5rem .9rem; z-index: 200; font-size: 12px;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- split masthead, spanning the viewport ---------- */

.mast { background: var(--brand-wash); }

.mast-in {
  display: flex;
  align-items: stretch;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.mast-id {
  position: relative;
  flex: 1 1 auto;
  background: var(--brand);
  padding: 16px var(--gutter) 15px;
  border-right: 3px solid var(--brand-lit);
}
/* the olive half runs out to the left edge of the window */
.mast-id::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 100%;
  width: 100vw;
  background: var(--brand);
}
.mast-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; position: relative; }
.mast-logo:hover { text-decoration: none; }
.mast-logo svg { flex: 0 0 auto; }
.mast-name {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--panel);
  line-height: 1.15;
}
.mast-sub {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-pale);
}
.mast-id :focus-visible { outline-color: var(--brand-lit); }

.mast-call {
  flex: 0 0 340px;
  background: var(--brand-wash);
  padding: 13px var(--gutter) 12px 24px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink);
}
.mast-call-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--brand-dk);
  border-bottom: 1px solid var(--brand-lit);
  padding-bottom: 3px;
  margin-bottom: 5px;
}
.mast-call p { margin-bottom: .3rem; }
.mast-call p:last-child { margin-bottom: 0; }
.mast-call-note { color: var(--muted); }

/* navigation: a bar across the whole window, links on the measure */

.mast-menu { display: none; }

.mast-nav {
  background: var(--brand-band);
  background-image: linear-gradient(var(--brand-wash), var(--brand-band));
  border-top: 1px solid var(--brand-lit);
  border-bottom: 4px solid var(--brand);
}
.mast-nav ul {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding: 0 calc(var(--gutter) - 15px);
}
.mast-nav li + li { border-left: 1px solid var(--brand-lit); }
.mast-nav a {
  display: block;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-dk);
  text-decoration: none;
}
.mast-nav a:hover { color: var(--brand-dk); background: var(--brand-pale); text-decoration: underline; }
.mast-nav a[aria-current="page"] { background: var(--brand); color: var(--panel); }
.mast-nav a[aria-current="page"]:hover { background: var(--brand-dk); color: var(--panel); }

/* ---------- home introduction ---------- */

.hero-grid { display: flex; flex-direction: column-reverse; }

.hero-fig { background: var(--shade-2); border-bottom: 4px solid var(--brand-lit); }
.hero-fig img { width: 100%; height: 250px; object-fit: cover; }

.hero-copy {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding: 24px var(--gutter) 26px;
}
.hero-copy h1 { margin-bottom: .5rem; }
.hero-lede { font-size: 13.5px; color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--brand-dk);
  border-radius: 2px;
  background: var(--brand-mid);
  background-image: linear-gradient(var(--brand-mid), var(--brand));
  color: var(--panel);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dk); background-image: none; color: var(--panel); text-decoration: none; }
.btn--ghost {
  background: var(--shade);
  background-image: linear-gradient(var(--panel), var(--shade-2));
  color: var(--brand-dk); border-color: var(--edge);
}
.btn--ghost:hover { background: var(--brand-band); background-image: none; color: var(--brand-dk); }
.band--ink a.btn--ghost { color: var(--brand-dk); border-color: var(--brand-lit); }
.band--ink a.btn--ghost:hover { color: var(--brand-dk); }

/* ---------- registered particulars: a band across the window ---------- */

.register {
  background: var(--brand-wash);
  border-top: 4px solid var(--brand-lit);
  border-bottom: 4px solid var(--brand-lit);
}
.register dl {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--wrap);
  margin-left: auto; margin-right: auto;
  padding: 0 var(--gutter);
}
.register div { padding: 12px 20px 13px; border-right: 1px solid var(--brand-lit); }
.register div:first-child { padding-left: 0; }
.register div:last-child { border-right: 0; }
.register dt {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-mid); margin-bottom: 2px;
}
.register dd { font-size: 12.5px; line-height: 1.45; color: var(--ink); }

/* ---------- page head (inner pages) ---------- */

.pagehead {
  padding: 20px 0 22px;
  background: var(--shade);
  background-image: linear-gradient(var(--panel), var(--shade));
  border-bottom: 4px solid var(--brand-lit);
}
.pagehead p { margin-top: .5rem; color: var(--ink); }

.crumbs { font-size: 11px; color: var(--muted); margin-bottom: .45rem; }
.crumbs a { color: var(--accent); }

/* ---------- generic sections: full-width bands ---------- */

.band { padding: 26px 0 30px; }
.band + .band { border-top: 3px solid var(--brand-pale); }
.band--white { background: var(--shade); }
.band + .band--white { border-top: 4px solid var(--brand-lit); }
.band--white { border-top: 4px solid var(--brand-lit); }
.band--ink { background: var(--brand-dk); color: var(--brand-pale); }
.band + .band--ink { border-top: 4px solid var(--brand-lit); }
.band--ink h2, .band--ink h3 { color: var(--panel); }
.band--ink a { color: var(--brand-pale); }
.band--ink a:hover { color: var(--panel); }
.band--ink :focus-visible { outline-color: var(--brand-lit); }

/* a band that carries nothing but running text: keep it on a reading
   measure, centred, while the bands above and below stay full width */
.band--doc .prose { max-width: 50em; margin-left: auto; margin-right: auto; }

h2 + .prose, h2 + p { margin-top: .4rem; }

.lead-2col { display: grid; grid-template-columns: 1fr 1.45fr; gap: 40px; align-items: start; }
.prose { max-width: 48em; }
.prose p + h2, .prose p + h3 { margin-top: 1rem; }
.prose h3 { margin-bottom: .3rem; }

.note-soft { color: var(--muted); margin-top: .5rem; }

/* ---------- capability index ---------- */

.index-row {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 280px;
  gap: 26px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--line-soft);
}
.index-row:first-child { border-top: 3px solid var(--brand-lit); }
.index-row p { max-width: 60em; }
.index-no {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  color: var(--brand-mid); padding-top: 1px;
}
.index-row h3 { margin-bottom: .25rem; }
.index-row figure img { width: 100%; height: 142px; object-fit: cover; }
.index-more {
  display: inline-block; margin-top: .4rem;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- notices and panels ---------- */

.notice {
  background: var(--accent-wash);
  border-left: 4px solid var(--accent);
  padding: 13px 18px 14px;
}
.notice h3 { font-size: 14px; margin-bottom: .3rem; color: var(--accent); }
.notice p { color: var(--ink); }

.panel {
  background: var(--brand-wash);
  border-top: 3px solid var(--brand-mid);
  padding: 14px 18px 16px;
}
.panel h3 { margin-bottom: .4rem; padding-bottom: 4px; border-bottom: 1px dotted var(--line); }
.band--white .panel { background: var(--panel); }

/* ---------- checklist ---------- */

.checklist li {
  position: relative; padding-left: 1.3rem; margin-bottom: .35rem;
  border-bottom: 1px dotted var(--line-soft); padding-bottom: .35rem;
}
.checklist li:last-child { border-bottom: 0; margin-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .5rem; height: .5rem; border: 2px solid var(--brand-mid);
}
.band--ink .checklist li { border-bottom-color: var(--brand-mid); }
.band--ink .checklist li::before { border-color: var(--brand-lit); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 18px; }
.step { border-top: 4px solid var(--brand-lit); padding: 11px 0 0; }
.step .n {
  font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--brand-lit); display: block; margin-bottom: .25rem;
}
.band--ink .step p { color: var(--brand-pale); font-size: 12.5px; }
.step h3 { font-size: 14px; margin-bottom: .25rem; }

/* ---------- fact table: rules only, no cell boxes ---------- */

.facts { width: 100%; border-collapse: collapse; }
.facts caption {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-mid); padding-bottom: .4rem;
}
.facts th, .facts td {
  text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top; font-size: 12.5px;
}
.facts tr:first-child th, .facts tr:first-child td { border-top: 3px solid var(--brand-lit); }
.facts th { width: 22rem; font-weight: 700; color: var(--brand-dk); background: var(--brand-wash); }
.facts td { background: var(--panel); }
.band--white .facts td { background: var(--shade); }

/* ---------- media ---------- */

.pair { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 40px; align-items: start; }
.pair p { max-width: 52em; }
.strip { margin-top: 18px; }
.strip img { width: 100%; }
figcaption { font-size: 11px; color: var(--muted); margin-top: .3rem; }

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--shade); border-top: 4px solid var(--brand-lit); padding: 12px 16px 15px; }
.band--white .card { background: var(--panel); }
.card h3 { margin-bottom: .35rem; }
.card p { font-size: 12.5px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 46px; align-items: start; }

.field { margin-bottom: .7rem; }
.field label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand-dk); margin-bottom: .2rem;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 13px; color: var(--ink);
  padding: 6px 8px; border: 1px solid var(--edge); background: var(--panel); border-radius: 2px;
}
.field input, .field select { max-width: 34em; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: .15rem; }
.req { color: var(--accent); }

.form-note {
  font-size: 12.5px; background: var(--shade); border-left: 4px solid var(--brand-lit);
  padding: 11px 15px; margin-bottom: 16px; color: var(--ink);
}
.form-status {
  margin-top: 14px; padding: 11px 15px; font-size: 12.5px;
  background: var(--accent-wash);
  border-left: 4px solid var(--accent); color: var(--ink);
}
.form-status[hidden] { display: none; }

.addr-block { font-style: normal; line-height: 1.6; }
.addr-block .placeholder { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.foot .addr-block .placeholder { color: var(--brand-pale); }

/* ---------- credits ---------- */

.credit-list li { border-top: 1px solid var(--line-soft); padding: 9px 0; font-size: 12.5px; }
.credit-list li:first-child { border-top: 3px solid var(--brand-lit); }
.credit-list .file { font-family: var(--mono); font-size: 12px; color: var(--brand-dk); display: block; margin-bottom: .1rem; }
.credit-list a { word-break: break-word; }

/* ---------- footer: spans the window ---------- */

.foot {
  background: var(--brand-dk); color: var(--brand-pale);
  border-top: 4px solid var(--brand-lit);
  padding: 24px 0 0; font-size: 12.5px;
}
.foot h2, .foot h3 {
  color: var(--panel); font-size: 12px; font-family: var(--sans);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: .5rem;
  border-bottom: 1px solid var(--brand-mid); padding-bottom: 3px;
}
.foot a { color: var(--brand-pale); }
.foot a:hover { color: var(--panel); }
.foot :focus-visible { outline-color: var(--brand-lit); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 20px; }
.foot-grid p { max-width: 34em; }
.foot-grid li { margin-bottom: .2rem; }
.foot-bottom {
  border-top: 1px solid var(--brand-mid); padding: 10px 0 14px;
  font-size: 11.5px; color: var(--brand-pale);
  display: flex; flex-wrap: wrap; gap: 3px 20px; justify-content: space-between;
}

/* ---------- cookie notice ---------- */

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--brand-wash); border-top: 4px solid var(--brand);
  padding: 10px 0 12px;
  font-size: 12px; color: var(--ink);
}
.cookie[hidden] { display: none; }
.cookie p, .cookie-btns {
  max-width: var(--wrap); margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.cookie p { margin-bottom: .5rem; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn { padding: 6px 12px; font-size: 11px; }

/* ---------- 404 ---------- */

.oops { padding: 30px 0 34px; }
.oops .code { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--brand-mid); margin-bottom: .3rem; }

/* ---------- wide-window arrangements ---------- */

@media (min-width: 1024px) {
  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: 46px;
    align-items: start;
  }
  .hero-copy .kicker { grid-column: 1; grid-row: 1; }
  .hero-copy h1 { grid-column: 1; grid-row: 2; }
  .hero-copy .btn-row { grid-column: 1; grid-row: 3; }
  .hero-copy .hero-lede {
    grid-column: 2; grid-row: 1 / span 3;
    padding-left: 34px; border-left: 4px solid var(--brand-pale);
  }

  .pagehead .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: 46px;
    align-items: start;
  }
  .pagehead .crumbs { grid-column: 1 / -1; grid-row: 1; }
  .pagehead h1 { grid-column: 1; grid-row: 2; }
  .pagehead p:not(.crumbs) {
    grid-column: 2; grid-row: 2; margin-top: 0;
    padding-left: 34px; border-left: 4px solid var(--brand-pale);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .index-row { grid-template-columns: 2.4rem minmax(0, 1fr) 240px; gap: 20px; }
  .mast-call { flex: 0 0 300px; }
  .lead-2col, .contact-grid { gap: 30px; }
  .steps, .cards, .pair { gap: 20px; }
  .foot-grid { gap: 28px; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .register dl { grid-template-columns: repeat(2, 1fr); }
  .register div { border-bottom: 1px solid var(--brand-lit); }
  .register div:nth-child(odd) { padding-left: 0; }
  .register div:nth-child(even) { border-right: 0; }
  .register div:nth-last-child(-n+2) { border-bottom: 0; }
  .lead-2col, .pair, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .index-row { grid-template-columns: 2rem minmax(0, 1fr); }
  .index-row figure { grid-column: 1 / -1; max-width: 320px; }
  .mast-call { flex: 0 0 265px; }
  .mast-name { font-size: 17px; }
  .facts th { width: 15rem; }
}

@media (max-width: 660px) {
  .mast-in { display: block; }
  .mast-id { border-right: 0; border-bottom: 3px solid var(--brand-lit); }
  .mast-call { border-top: 0; }
  .mast-menu {
    display: block; width: 100%;
    background: var(--brand-band); border: 0; border-top: 1px solid var(--brand-lit);
    font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--brand-dk);
    padding: 9px 14px; cursor: pointer; text-align: left;
  }
  .mast-nav { display: none; border-top: 0; }
  .mast-nav.open { display: block; }
  .mast-nav ul { display: block; padding: 0; }
  .mast-nav li + li { border-left: 0; }
  .mast-nav li { border-top: 1px solid var(--brand-lit); }
  .index-row figure { max-width: 100%; }
  .steps, .cards { grid-template-columns: 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .facts th { width: auto; }
  .facts, .facts tbody, .facts tr, .facts th, .facts td { display: block; }
  .facts th { border-bottom: 0; }
  .facts tr:first-child td { border-top: 0; }
  .hero-fig img { height: 150px; }
  .band { padding: 20px 0 24px; }
}

@media (max-width: 420px) {
  :root { --gutter: 14px; }
  .mast-name { font-size: 15px; }
  .mast-sub { letter-spacing: .06em; }
  .register dl { grid-template-columns: 1fr; }
  .register div { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--brand-lit); }
  .register div:last-child { border-bottom: 0; }
  .foot-bottom { justify-content: flex-start; }
}

@media print {
  .mast-nav, .mast-menu, .cookie, .btn-row { display: none; }
  body { background: var(--panel); }
  .mast, main, .foot { border: 0; margin: 0; max-width: none; }
  .mast-id::before { display: none; }
}
