/* Mackay Shipping Containers — hire-first layout.
   Palette: petrol teal and cane amber on a warm sand ground. */
:root {
  --teal: #10706b;
  --teal-deep: #0a4f4b;
  --night: #0d2b28;
  --amber: #d9821c;
  --amber-soft: #f2b45e;
  --sand: #f6f1e7;
  --paper: #fffdf9;
  --ink: #1d2826;
  --grey: #5b6764;
  --rule: #ded6c6;
  --heading: "Saira Semi Condensed", "Arial Narrow", sans-serif;
  --text: "Work Sans", system-ui, sans-serif;
  --edge: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.62 var(--text); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
h1, h2, h3 { font-family: var(--heading); color: var(--night); line-height: 1.1; margin: 0 0 0.45em; letter-spacing: 0.2px; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1em; }
figure { margin: 0; }

.rail { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
.skipto { position: absolute; left: -999px; top: 6px; background: var(--amber); color: #000; padding: 8px 14px; z-index: 99; }
.skipto:focus { left: 8px; }

/* ---------- desk line + header ---------- */
.deskline { background: var(--night); color: #cfe3df; font-size: 0.82rem; }
.deskline .rail { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.deskline a { color: var(--amber-soft); text-decoration: none; }
.siteline { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 3px solid var(--amber); }
.siteline-row { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.wordmark { display: block; width: 210px; flex: 0 0 auto; }
.mainnav { margin-left: auto; position: relative; }
.mainnav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.mainnav > ul > li { position: relative; }
.mainnav a { display: block; padding: 10px 12px; color: var(--night); font-weight: 600; text-decoration: none; border-radius: var(--edge); }
.mainnav a:hover { background: var(--sand); }
.mainnav .subnav { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 14px 30px rgba(13, 43, 40, 0.14); border-radius: var(--edge); }
.has-subnav:hover .subnav, .has-subnav:focus-within .subnav { display: block; }
.subnav a { font-weight: 500; font-size: 0.95rem; }
.navflip, .navflip-btn { display: none; }
.callpill { display: flex; flex-direction: column; align-items: flex-end; background: var(--teal); color: #fff; padding: 7px 16px; border-radius: 40px; text-decoration: none; font: 800 1.15rem/1.15 var(--heading); }
.callpill small { font: 500 0.7rem/1.2 var(--text); color: #cfe9e5; }
.callpill:hover { background: var(--teal-deep); color: #fff; }

/* ---------- buttons ---------- */
.act { display: inline-block; padding: 13px 22px; border-radius: var(--edge); font: 700 1.05rem/1.2 var(--heading); letter-spacing: 0.4px; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.act-amber { background: var(--amber); color: #1b1203; }
.act-amber:hover { background: #c4710f; color: #000; }
.act-teal { background: var(--teal); color: #fff; }
.act-teal:hover { background: var(--teal-deep); color: #fff; }
.act-line { border-color: var(--teal); color: var(--teal); background: transparent; }
.act-line-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.act-line-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.act-wide { width: 100%; }
.row-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- home: hire header ---------- */
.hirehead { position: relative; overflow: hidden; background: var(--night); color: #e9f2f0; }
.hirehead-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.hirehead-in { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; padding: 60px 0 70px; align-items: start; }
.hirehead h1 { color: #fff; }
.hirehead-lead { font-size: 1.14rem; max-width: 600px; }
.overline { display: inline-block; font: 700 0.86rem/1.3 var(--text); letter-spacing: 1.4px; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.hirehead .overline { color: var(--amber-soft); }
.hirehead-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 26px; }
.hirehead-facts li { background: rgba(255, 255, 255, 0.09); border-left: 4px solid var(--amber); padding: 8px 14px; font-size: 0.95rem; }
.hirehead-facts b { display: block; font: 800 1.35rem/1.1 var(--heading); color: #fff; }
.hirehead-form { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 24px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32); border-top: 6px solid var(--amber); }
.hirehead-form h2 { font-size: 1.5rem; }

/* ---------- enquiry form ---------- */
.deskform label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; color: var(--night); }
.deskform label span { font-weight: 400; color: var(--grey); }
.deskform p { margin: 0 0 12px; }
.deskform input[type="text"], .deskform input[type="tel"], .deskform input[type="email"], .deskform select, .deskform textarea { width: 100%; padding: 11px 12px; border: 1.5px solid #c9c0ad; border-radius: var(--edge); font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.deskform input:focus, .deskform select:focus, .deskform textarea:focus { outline: 3px solid rgba(16, 112, 107, 0.3); border-color: var(--teal); }
.deskform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.deskform-mode { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 0; }
.deskform-mode legend { font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; padding: 0; }
.deskform-mode input { position: absolute; opacity: 0; pointer-events: none; }
.deskform-mode label { flex: 1; text-align: center; margin: 0; padding: 10px; border: 1.5px solid var(--teal); color: var(--teal); cursor: pointer; font: 700 1rem/1.2 var(--heading); }
.deskform-mode label:first-of-type { border-radius: var(--edge) 0 0 var(--edge); }
.deskform-mode label:last-of-type { border-radius: 0 var(--edge) var(--edge) 0; border-left: 0; }
.deskform-mode input:checked + label { background: var(--teal); color: #fff; }
.deskform-mode input:focus-visible + label { outline: 3px solid var(--amber); }
.deskform-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.deskform-small { font-size: 0.82rem; color: var(--grey); margin-top: 10px !important; }
.deskform-done { background: #e3f2ef; border-left: 5px solid var(--teal); padding: 18px; border-radius: var(--edge); }
.deskform-fail { background: #fdecd8; border-left: 5px solid var(--amber); padding: 12px 14px; margin-bottom: 14px; border-radius: var(--edge); }

/* ---------- sections ---------- */
.sect { padding: 64px 0; }
.sect-top { padding-top: 26px; }
.sect-tint { background: var(--sand); }
.lede { font-size: 1.15rem; max-width: 760px; color: #2f3b39; }
.wide { font-size: 1.05rem; max-width: none; }
.pricefine { font-size: 0.86rem; color: var(--grey); }
.gradeline { font-size: 0.88rem; color: var(--grey); border-left: 3px solid var(--amber); padding-left: 12px; }
.pair { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.threecol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.threecol h2 { font-size: 1.45rem; }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.side-pic img, .sizehead figure img, .townhead figure img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.trail { font-size: 0.86rem; color: var(--grey); padding: 16px 0 0; }
.trail a { color: var(--grey); }

/* rate card table */
.ratecard-wrap { overflow-x: auto; }
.ratecard { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); font-size: 1rem; }
.ratecard caption { text-align: left; font: 700 0.8rem/1.3 var(--text); letter-spacing: 1px; text-transform: uppercase; color: var(--grey); padding-bottom: 8px; }
.ratecard th, .ratecard td { padding: 13px 14px; border-bottom: 1px solid var(--rule); text-align: left; }
.ratecard thead th { background: var(--night); color: #fff; font: 700 0.95rem/1.2 var(--heading); }
.ratecard tbody td:nth-child(2) { font: 800 1.2rem/1.1 var(--heading); color: var(--teal); background: #eef6f4; }
.ratecard td small { font: 500 0.8rem var(--text); color: var(--grey); }
.ratecard .rate-ask { font: 500 0.9rem var(--text); color: var(--grey); }
.measures td, .measures th { white-space: nowrap; font-size: 0.95rem; }
.measures tbody td:nth-child(2) { font: inherit; color: inherit; background: none; }
.measures tbody td:nth-child(5), .measures tbody td:nth-child(6) { background: #fbefdc; font-weight: 600; }

/* jobs + ladder */
.jobgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.job { background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--teal); border-radius: var(--edge); padding: 20px; display: flex; flex-direction: column; }
.job p { flex: 1; font-size: 0.96rem; }
.job a { font-weight: 600; text-decoration: none; }
.ladder { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.ladder li { position: relative; padding: 22px 20px 6px; border-top: 4px solid var(--teal); }
.ladder li:last-child { border-top-color: var(--amber); }
.ladder-n { position: absolute; top: -18px; left: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 800 1rem var(--heading); }
.ladder li:last-child .ladder-n { background: var(--amber); color: #000; }
.ladder h3 { font-size: 1.12rem; margin-top: 6px; }
.ladder p { font-size: 0.95rem; }
.ladder-foot { margin-top: 18px; font-weight: 600; }

/* shelf of products */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 30px; }
.shelf-item { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); transition: transform 0.15s ease; }
.shelf-item:hover { transform: translateY(-3px); color: var(--ink); }
.shelf-item img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.shelf-name { font: 800 1.3rem/1.15 var(--heading); color: var(--night); padding: 16px 18px 4px; }
.shelf-line { padding: 0 18px; font-size: 0.95rem; flex: 1; }
.shelf-price { margin: 14px 18px 18px; font-weight: 600; color: var(--teal); }
.typelinks { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--rule); }
.typelinks a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.typelinks b { font-family: var(--heading); font-size: 1.15rem; color: var(--teal); margin-right: 8px; }
.hirecall { background: #fbefdc; border-radius: var(--edge); padding: 12px 16px; display: inline-block; }

/* checks list */
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px dashed var(--rule); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }

/* delivery runs */
.runs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 22px 0; }
.runs > div { border-left: 4px solid var(--amber); padding-left: 18px; }
.trucks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.trucks > div { background: var(--sand); border-radius: var(--edge); padding: 20px; }
.trucks h2 { font-size: 1.35rem; }

/* access check */
.reach { background: #fff; border: 2px solid var(--teal); border-radius: 10px; padding: 24px; }
.reach h2 { font-size: 1.5rem; }
.reach label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.reach select { width: 100%; padding: 10px; border: 1.5px solid #c9c0ad; border-radius: var(--edge); font: inherit; background: #fff; }
.reach-out:not(:empty) { margin-top: 16px; background: #e3f2ef; padding: 14px; border-radius: var(--edge); }

/* towns */
.townhead { background: linear-gradient(110deg, var(--night) 0 58%, var(--teal-deep) 58% 100%); color: #e2efec; margin-top: 14px; }
.townhead-in { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; padding: 44px 0; }
.townhead h1 { color: #fff; }
.townhead .overline { color: var(--amber-soft); }
.townhead .lede { color: #d6e7e3; }
.townchips { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.townchips a { display: block; padding: 7px 14px; border: 1.5px solid var(--teal); border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.townchips a:hover { background: var(--teal); color: #fff; }

/* size + type pages */
.sizehead { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.sizehead-flip { grid-template-columns: 0.95fr 1.05fr; }
.pricebox { margin: 22px 0 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; max-width: 470px; }
.pricebox div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: #fff; }
.pricebox div:last-child { border-bottom: 0; }
.pricebox dt { font-weight: 600; font-size: 0.95rem; }
.pricebox dd { margin: 0; font: 800 1.15rem var(--heading); color: var(--night); white-space: nowrap; }
.pricebox-hire { background: var(--teal) !important; color: #fff; }
.pricebox-hire dd { color: #fff; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 24px; }
.specs div { background: #fff; border-radius: var(--edge); padding: 14px 16px; border-bottom: 4px solid var(--amber); }
.specs dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--grey); }
.specs dd { margin: 4px 0 0; font: 700 1.1rem var(--heading); }
.qa h3 { margin-top: 26px; font-size: 1.18rem; }

/* reading lists + guides */
.reading h2 { font-size: 1.5rem; }
.reading ol { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: read; }
.reading li { counter-increment: read; display: grid; grid-template-columns: 44px 1fr auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.reading li::before { content: counter(read, decimal-leading-zero); grid-row: span 2; font: 800 1.5rem var(--heading); color: var(--amber); }
.reading li a { font: 700 1.12rem/1.25 var(--heading); text-decoration: none; }
.reading li span { grid-column: 2; font-size: 0.93rem; color: var(--grey); }
.reading li em { grid-row: 1; grid-column: 3; font-style: normal; font-size: 0.82rem; color: var(--grey); }
.guidegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 26px; }
.guidegrid article { background: #fff; border: 1px solid var(--rule); border-left: 5px solid var(--teal); border-radius: var(--edge); padding: 22px; }
.guidegrid h2 { font-size: 1.35rem; }
.guidegrid h2 a { text-decoration: none; color: var(--night); }
.guidegrid span { font-size: 0.85rem; color: var(--grey); }
.longread { font-size: 1.07rem; }
.longread h2 { margin-top: 1.6em; font-size: 1.65rem; }
.standfirst { font-size: 1.24rem; color: #34413e; border-left: 4px solid var(--amber); padding-left: 16px; }
.plainpage { min-height: 46vh; }

/* enquiry panel + closer */
.panel-enquire { background: var(--teal-deep); color: #dcefeb; padding: 60px 0; }
.panel-enquire-in { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 42px; align-items: start; }
.panel-enquire h2 { color: #fff; }
.panel-enquire .deskform { background: var(--paper); color: var(--ink); padding: 24px; border-radius: 10px; }
.closer { background: var(--amber); padding: 52px 0; }
.closer-in { text-align: center; }
.closer h2 { color: #1b1203; }
.closer p { max-width: 640px; margin: 0 auto 20px; color: #2b1d06; }
.closer .act-amber { background: var(--night); color: #fff; }
.closer .act-line-light { border-color: var(--night); color: var(--night); }

/* footer */
.basefoot { background: var(--night); color: #b8cdc9; padding: 54px 0 90px; font-size: 0.94rem; }
.basefoot-cols { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 1.1fr; gap: 34px; }
.basefoot h2 { color: #fff; font-size: 1.1rem; letter-spacing: 0.6px; }
.basefoot ul { list-style: none; padding: 0; margin: 0; }
.basefoot li { margin-bottom: 6px; }
.basefoot a { color: #dbe9e6; text-decoration: none; }
.basefoot a:hover { color: var(--amber-soft); }
.basefoot-tel { font: 800 1.5rem var(--heading); color: var(--amber-soft) !important; }
.foot-towns { columns: 2; }
.basefoot-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 34px; padding-top: 18px; font-size: 0.84rem; }
.callbar { display: none; }

/* ---------- narrower screens ---------- */
@media (max-width: 1020px) {
  .hirehead-in, .pair, .side, .sizehead, .sizehead-flip, .panel-enquire-in, .townhead-in { grid-template-columns: 1fr; }
  .jobgrid, .ladder { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .basefoot-cols { grid-template-columns: 1fr 1fr; }
  .side-flip > div { order: 0; }
}
@media (max-width: 860px) {
  .callpill { display: none; }
  .navflip { display: block; position: absolute; right: 0; top: 0; width: 50px; height: 50px; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
  .navflip:focus-visible + .navflip-btn { outline: 3px solid var(--amber); }
  .navflip-btn { display: grid; gap: 5px; padding: 12px; cursor: pointer; }
  .navflip-btn i { display: block; width: 26px; height: 3px; background: var(--night); border-radius: 2px; }
  .mainnav > ul { display: none; position: absolute; right: 0; top: 54px; width: min(320px, 92vw); flex-direction: column; background: #fff; border: 1px solid var(--rule); padding: 10px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16); border-radius: var(--edge); }
  .navflip:checked ~ ul { display: flex; }
  .mainnav .subnav { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .shelf, .threecol, .runs, .trucks, .guidegrid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18); }
  .callbar a { padding: 15px 8px; text-align: center; font: 700 1rem var(--heading); text-decoration: none; }
  .callbar a:first-child { background: var(--teal); color: #fff; }
  .callbar a:last-child { background: var(--amber); color: #1b1203; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sect { padding: 46px 0; }
  .deskform-grid, .jobgrid, .ladder, .basefoot-cols { grid-template-columns: 1fr; }
  .wordmark { width: 170px; }
  .deskline .rail { flex-direction: column; gap: 2px; }
  .hirehead-in { padding: 36px 0 44px; }
  .reading li { grid-template-columns: 34px 1fr; }
  .reading li em { grid-column: 2; grid-row: auto; }
}
