/* ------------------------------------------------------------------
   John Gunn and Sons (Holdings) — site stylesheet
   JOHN GUNN AND SONS (HOLDINGS) LIMITED · SC221924 · Swiney, Lybster

   Colourway: forest green (#1d5c3a) with a warm sand accent (#b07a2e)
   on an off-white green-cast ground (#e7ecdf).
   Layout: full-page. Nothing is boxed. Every band — banner, nav, hero,
   photograph strip, section, footer — runs the full width of the window
   and holds its content to a 1100px centred measure. Rules are used as
   hairline separators between bands, not as outlines round things.
   ------------------------------------------------------------------ */

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

/* the canvas carries the footer green, so a short page leaves the dark
   band running to the bottom of the window rather than a pale offcut */
html { -webkit-text-size-adjust: 100%; background-color: #143f28; }

body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #2b3327;
  background-color: #f7f9f2;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
address { font-style: normal; }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #1d5c3a;
  font-weight: normal;
  line-height: 1.25;
}
h1 { font-size: 23px; margin-bottom: 8px; }
h2 { font-size: 18px; margin-bottom: 10px; }
h3 { font-size: 15px; color: #123b26; margin-bottom: 5px; }
h4 { font-size: 13px; }
p { margin-bottom: 11px; }
p:last-child { margin-bottom: 0; }
strong { color: #123b26; }

a { color: #1d5c3a; text-decoration: underline; }
a:hover { color: #7a5316; }

:focus-visible { outline: 2px solid #7a5316; outline-offset: 1px; }

/* the measure: every band is full width, its contents sit in here */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 30px; }
.wrap.narrow > * { max-width: 760px; }
/* the numbered section head always rules the full measure, narrow or not */
.wrap.narrow > .sec-head { max-width: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #123b26; color: #e7ecdf; padding: 8px 14px; font-weight: bold;
}
.skip:focus { left: 0; }

/* ---------------- the line of registered particulars ----------------
   One line of small text above the banner. No band, no colour block. */

.particulars-line {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7px 30px 6px;
  font-size: 11px;
  color: #4c5945;
  text-align: right;
  margin-bottom: 0;
}
.particulars-line strong { color: #1d5c3a; font-weight: bold; }

/* ---------------- banner masthead ---------------- */

.masthead {
  height: 190px;
  border-bottom: 3px solid #123b26;
  background-color: #123b26;
  background-position: 50% 45%;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.masthead-coast  { background-image: url(../images/banner-home.jpg); }
.masthead-record { background-image: url(../images/banner-activities.jpg); }
/* the photograph is tinted so the name reads against it */
.masthead::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(rgba(18, 59, 38, .34), rgba(18, 59, 38, .78));
}
.masthead .wrap { height: 100%; position: relative; z-index: 1; }

.nameplate {
  position: absolute;
  left: 30px; bottom: 22px;
  background: #123b26;
  background: rgba(18, 59, 38, .88);
  border-left: 5px solid #b07a2e;
  padding: 10px 20px 11px 15px;
  max-width: 620px;
  display: flex;
  align-items: center;
}
.nameplate .crest { flex: 0 0 auto; margin-right: 12px; }
.nameplate-text { min-width: 0; }
.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 21px;
  line-height: 1.2;
  color: #f4f8ee;
  text-decoration: none;
  letter-spacing: .01em;
}
a.brand-name:hover { color: #f2e0c6; text-decoration: underline; }
.brand-sub {
  display: block;
  font-size: 11px;
  color: #d8ac77;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-top: 3px;
}

/* ---------------- navigation, centred under the banner ---------------- */

.navband {
  background-color: #17492e;
  background-image: linear-gradient(#22643f, #143f28);
  border-bottom: 3px double #b07a2e;
}
.navband .wrap { padding: 0 30px; }
.nav-toggle {
  display: none;
  width: 100%;
  font-family: inherit; font-size: 12px; font-weight: bold;
  text-align: left; text-transform: uppercase; letter-spacing: .08em;
  color: #f4f8ee;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.18);
  padding: 10px 2px;
  cursor: pointer;
}
.mainnav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; }
.mainnav li { border-left: 1px solid rgba(255,255,255,.15); }
.mainnav li:last-child { border-right: 1px solid rgba(255,255,255,.15); }
/* three items only: give each one room so the band does not read as empty */
.mainnav a {
  display: block;
  padding: 11px 40px 10px;
  font-size: 12px; font-weight: bold;
  color: #e7ecdf;
  text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none;
}
.mainnav a:hover { background: #0f3421; color: #f2e0c6; }
.mainnav a[aria-current="page"] {
  background: #f7f9f2;
  color: #123b26;
}

/* ---------------- the page: full width, no outer box ---------------- */

main {
  display: block;
  background: #f7f9f2;
}
main > section, main > div { padding-left: 0; padding-right: 0; }

/* long-form prose sitting straight in a band is held to a readable
   measure, so a 1100px band does not produce 140-character lines */
.band > .wrap > p,
.band > .wrap > ul,
.band > .wrap > ol,
.pagehead .wrap > p { max-width: 78ch; }
/* the numbered sequence is the exception: its rules run the whole measure */
.band > .wrap > ol.steps { max-width: none; }
ol.steps h3, ol.steps p { max-width: 78ch; }

/* ---------------- hero (home page) ---------------- */

.hero {
  background: #eef2e6;
  border-bottom: 1px solid #c8d3bd;
  padding: 30px 0 34px;
}
.hero .wrap { display: flex; gap: 48px; align-items: flex-start; }
.hero .wrap > div { flex: 1 1 0; min-width: 280px; max-width: 700px; }
.eyebrow {
  font-size: 11px; font-weight: bold; letter-spacing: .12em;
  text-transform: uppercase; color: #7a5316;
  margin-bottom: 6px;
}
.hero h1 { font-size: 28px; margin-bottom: 10px; }
.hero p.lead { font-size: 15px; color: #2b3327; }

/* ---------------- buttons ---------------- */

.actions { margin-top: 14px; }
.actions .btn { margin: 0 8px 8px 0; }
.btn {
  display: inline-block;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 12px; font-weight: bold; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none;
  color: #ffffff;
  padding: 7px 15px 6px;
  border: 1px solid #123b26;
  border-radius: 2px;
  background-color: #1d5c3a;
  background-image: linear-gradient(#2a6b48, #1d5c3a);
  cursor: pointer;
}
.btn:hover { background-image: linear-gradient(#1d5c3a, #143f28); color: #ffffff; }
.btn-quiet {
  color: #4a3410;
  border-color: #b07a2e;
  background-color: #f2e0c6;
  background-image: linear-gradient(#f7ecd8, #eddcbc);
}
.btn-quiet:hover { color: #4a3410; background-image: linear-gradient(#eddcbc, #e3cca6); }

/* ---------------- inner page title bar ---------------- */

.pagehead {
  background-color: #f2e0c6;
  background-image: linear-gradient(#f7ecd8, #eedcbd);
  border-bottom: 1px solid #cdae7c;
  padding: 24px 0 26px;
}
.pagehead h1 { border: 0; font-size: 26px; }
.pagehead p { font-size: 14px; margin-bottom: 0; }

/* ---------------- full-bleed photograph strip ---------------- */

.strip { padding: 0 0 12px; border-bottom: 1px solid #dbe3d0; background: #eef2e6; }
.strip img { width: 100%; height: 300px; object-fit: cover; }
.strip p {
  font-size: 11px; font-style: italic; color: #5b6653;
  margin: 8px 0 0; padding: 0;
}

/* ---------------- sections ---------------- */

.band { padding: 34px 0 38px; border-bottom: 1px solid #d4ddc7; }
.band:last-child { border-bottom: 0; }
.band-warm { background: #e7ecdf; border-bottom: 1px solid #c8d3bd; }
.band-ink {
  background-color: #143f28;
  background-image: linear-gradient(#17492e, #123b26);
  color: #e7ecdf;
  border-bottom: 1px solid #0d2c1c;
}
.band-ink h2, .band-ink h3 { color: #ffffff; }
.band-ink .sec-num { color: #f2e0c6; border-color: #b07a2e; background: rgba(0,0,0,.18); }
.band-ink a { color: #d8ac77; }
.band-ink a:hover { color: #f2e0c6; }

.sec-head {
  border-bottom: 1px solid #cdae7c;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.sec-num {
  display: inline-block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 11px; line-height: 1;
  color: #7a5316;
  border: 1px solid #cdae7c;
  background: #f2e0c6;
  padding: 4px 5px 3px;
  margin-right: 8px;
  vertical-align: 2px;
}
.sec-head h2 { display: inline; font-size: 19px; }

.cols { display: flex; flex-wrap: wrap; gap: 40px; }
.cols > * { flex: 1 1 240px; }
.cols-2 { display: flex; flex-wrap: wrap; gap: 44px; }
.cols-2 > * { flex: 1 1 300px; }
.split { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.split > * { flex: 1 1 300px; }
.split > figure.plate { flex: 0 1 420px; }

.note { border-top: 2px solid #1d5c3a; padding-top: 9px; }
.note h3 { margin-bottom: 4px; }
.note p { font-size: 13px; color: #414d3c; }

figure.plate img { width: 100%; }
figure.plate figcaption { font-size: 11px; font-style: italic; color: #5b6653; margin-top: 5px; }

/* ---------------- particulars, set as tables ---------------- */

.particulars, .plain-particulars {
  margin-top: 18px;
  font-size: 13px;
  border-top: 2px solid #1d5c3a;
}
.particulars div, .plain-particulars div { display: flex; border-bottom: 1px solid #c8d3bd; }
.plain-particulars div:nth-child(odd) { background: #edf1e4; }
.particulars dt, .plain-particulars dt {
  flex: 0 0 240px;
  font-weight: bold;
  color: #123b26;
  padding: 7px 12px;
}
.particulars dd, .plain-particulars dd { flex: 1 1 auto; padding: 7px 12px; }

.particulars { border-top-color: #b07a2e; }
.particulars div { border-bottom-color: #3d6d53; }
.particulars div:nth-child(odd) { background: rgba(0, 0, 0, .14); }
.particulars dt { color: #d8ac77; }
.particulars dd { color: #f4f8ee; }

/* ---------------- lists ---------------- */

ol.steps { list-style: none; counter-reset: st; }
ol.steps > li {
  counter-increment: st;
  padding: 0 0 12px 36px;
  margin-bottom: 12px;
  border-bottom: 1px solid #d4ddc7;
  position: relative;
}
ol.steps > li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 12px; color: #7a5316;
  border: 1px solid #cdae7c; background: #f2e0c6;
  padding: 2px 4px; line-height: 1;
}
ol.steps h3 { margin-bottom: 3px; }
ol.steps p { font-size: 13px; }

ul.ticks { list-style: none; }
ul.ticks li { position: relative; padding-left: 15px; margin-bottom: 5px; font-size: 13px; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 3px; background: #b07a2e;
}

.callout {
  background: #eef2e6;
  border-left: 4px solid #b07a2e;
  padding: 13px 18px;
}
.callout h3 { margin-bottom: 4px; }
.callout p { font-size: 13px; }

.prose { max-width: 74ch; }
/* .wrap.prose keeps the band's own measure and holds the running text
   inside it, so long-form pages start on the same left edge as the rest */
.wrap.prose { max-width: 1100px; }
.wrap.prose > * { max-width: 74ch; }
.wrap.prose > dl { max-width: none; }
.prose h2 { margin-top: 22px; border-bottom: 1px solid #c8d3bd; padding-bottom: 4px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 11px; }
.prose li { margin-bottom: 4px; }

.placeholder {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  background: #e7ecdf;
  border: 1px dashed #9aab8c;
  padding: 0 4px;
  color: #123b26;
}
.band-ink .placeholder { background: rgba(0,0,0,.22); border-color: #3d6d53; color: #f4f8ee; }

/* ---------------- form ---------------- */

.enquiry-form { max-width: 480px; }
.field { margin-bottom: 11px; }
.field label { display: block; font-size: 12px; font-weight: bold; color: #123b26; margin-bottom: 3px; }
.field .hint { display: block; font-weight: normal; font-size: 11px; color: #5b6653; margin-top: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 13px;
  color: #2b3327;
  padding: 5px 6px;
  border: 1px solid #9aab8c;
  border-top-color: #7f9270;
  background: #ffffff;
  border-radius: 2px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #7a5316;
  outline: 2px solid #7a5316;
  outline-offset: 0;
  background: #fffdf7;
}
.field .err { display: none; font-size: 12px; color: #8f2b1c; margin-top: 3px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #8f2b1c; }
.field.invalid .err { display: block; }
.req { color: #7a5316; font-weight: bold; }

.form-status {
  border-left: 4px solid #b07a2e;
  background: #f7ecd8;
  padding: 11px 16px;
  margin-bottom: 14px;
}
.form-status h3 { margin-bottom: 3px; }
.form-status p { font-size: 13px; margin-bottom: 0; }

/* ---------------- footer ---------------- */

/* full-bleed dark green band closing the page */
.site-foot {
  background-color: #143f28;
  background-image: linear-gradient(#17492e, #0f3421 260px);
  border-top: 3px solid #b07a2e;
  color: #d5dfca;
  font-size: 13px;
  padding-top: 34px;
}
.site-foot h4 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .08em;
  color: #d8ac77;
  border-bottom: 1px solid #3d6d53;
  padding-bottom: 4px; margin-bottom: 8px;
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.foot-grid > div { flex: 1 1 220px; }
.site-foot address { line-height: 1.5; }
/* the registration line is a legal formality: set it small and quiet */
.foot-legal .foot-reg {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.5;
  color: #a4b593;
}
/* a second heading in the same column needs air above it */
.foot-grid ul + h4 { margin-top: 18px; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 3px; }
/* label above value, so the short contact column carries its own weight */
.site-foot li br + a, .site-foot li br { line-height: 1.6; }
.site-foot a { color: #e7ecdf; text-decoration: none; }
.site-foot a:hover { color: #d8ac77; text-decoration: underline; }
.foot-rule { border: 0; border-top: 1px solid #3d6d53; margin: 26px 0 0; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: space-between;
  padding: 12px 0 28px;
  font-size: 11px;
  color: #b3c2a4;
}

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

.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background-color: #f2e0c6;
  background-image: linear-gradient(#f7ecd8, #eddcbc);
  border-top: 3px double #123b26;
  padding: 9px 0;
}
.cookie-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; justify-content: space-between; }
.cookie-bar p { font-size: 12px; margin: 0; max-width: 66ch; color: #3a2f18; }
.cookie-bar a { color: #4a3410; }
.cookie-bar .actions { margin: 0; }
.cookie-bar .btn { padding: 5px 11px 4px; font-size: 11px; margin: 0 0 0 6px; }

/* ---------------- narrower screens ---------------- */

@media (max-width: 1060px) {
  .particulars-line { text-align: left; }
  .strip img { height: 240px; }
  .band { padding: 28px 0 30px; }
}

@media (max-width: 860px) {
  .hero .wrap { display: block; }
  .hero .wrap > div { max-width: none; }
  .hero .factcard { margin-top: 22px; max-width: 420px; }
  .split > figure.plate { flex: 1 1 300px; }
}

@media (max-width: 760px) {
  .masthead { height: 140px; }
  .nameplate { left: 14px; right: 14px; bottom: 12px; padding: 8px 12px 9px 11px; max-width: none; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10px; }
  .navband .wrap { padding: 0 14px; }
  .nav-toggle { display: block; }
  .mainnav { display: none; padding-bottom: 6px; }
  .mainnav.open { display: block; }
  .mainnav ul { display: block; }
  .mainnav li, .mainnav li:last-child { border: 0; }
  .mainnav a { border-bottom: 1px solid rgba(255,255,255,.14); padding: 9px 2px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 22px 0 24px; }
  .hero h1 { font-size: 23px; }
  .pagehead { padding: 18px 0 19px; }
  .pagehead h1 { font-size: 22px; }
  .band { padding: 22px 0 24px; }
  .cols, .cols-2, .split { gap: 22px; }
  .particulars-line { padding: 6px 16px 5px; font-size: 10px; }
  .particulars dt, .plain-particulars dt { flex-basis: 160px; }
  .strip img { height: 150px; }
  .site-foot { padding-top: 24px; }
  .foot-grid { gap: 24px; }
}

@media (max-width: 460px) {
  .particulars div, .plain-particulars div { display: block; }
  .particulars dt, .plain-particulars dt { padding-bottom: 0; }
  .particulars dd, .plain-particulars dd { padding-top: 2px; }
  .factcard dl > div { display: block; }
  .factcard dt { padding-bottom: 0; }
  .factcard dd { padding-top: 1px; }
  .cookie-bar .btn { margin: 0 6px 0 0; }
  .foot-bottom { font-size: 10px; }
  .strip img { height: 130px; }
}

/* ---------------- the fact panel ---------------- */

.factcard {
  flex: 0 0 320px;
  background: #ffffff;
}
.factcard h2 {
  font-size: 14px;
  color: #f4f8ee;
  background-color: #1d5c3a;
  background-image: linear-gradient(#22643f, #1d5c3a);
  padding: 8px 12px;
  margin: 0;
}
.factcard dl > div:nth-child(odd) { background: #edf1e4; }
.factcard dl { font-size: 12px; }
.factcard dl > div { display: flex; }
.factcard dt {
  flex: 0 0 112px;
  color: #5b6653;
  padding: 6px 12px;
}
.factcard dd { flex: 1 1 auto; padding: 6px 12px; color: #123b26; }
@media (max-width: 760px) {
  .factcard { flex: 1 1 auto; }
}
