/* hullmanwithavan.com: a one-page local trader. Hull's terraces: stone tablet, slate, painted-door green, brick. */
:root {
  --hm-paint: #FFFFFF; --hm-stone: #E6E1D6; --hm-stone-edge: #CFC8B8; --hm-slate: #36414A; --hm-slate-soft: #5B6670;
  --hm-door: #1E5B45; --hm-door-dark: #164634; --hm-brick: #8E3B2E; --hm-brass: #B8913A;
  --hm-col: 780px; --hm-side: 16px; --hm-bar: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--hm-bar) + 12px); scroll-padding-top: 12px; }
body { margin: 0; background: var(--hm-paint); color: var(--hm-slate); font: 400 18px/1.62 "Atkinson Hyperlegible", Verdana, sans-serif; padding-bottom: var(--hm-bar); }
img, svg { max-width: 100%; }
a { color: var(--hm-door); text-underline-offset: 3px; }
a:hover { color: var(--hm-door-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hm-brass); outline-offset: 2px; }
h1, h2, h3, .hm-sign-name { font-family: Bitter, Georgia, serif; font-weight: 700; color: var(--hm-slate); line-height: 1.2; }
h2 { font-size: 1.55rem; margin: 0 0 0.55em; }
h3 { font-size: 1.12rem; margin: 1.25em 0 0.3em; }
p { margin: 0 0 1em; }
.hm-skip { position: absolute; left: -9999px; top: 8px; background: var(--hm-paint); padding: 8px 12px; z-index: 60; }
.hm-skip:focus { left: 8px; }
.hm-col { max-width: var(--hm-col); margin: 0 auto; padding: 0 var(--hm-side); }

/* the top line: just the name and the email, like the top of a trader's flyer */
/* header: slate, like the roofs over the terraces, with the door-green button in a white-painted surround */
.hm-topline { background: var(--hm-slate); }
.hm-topline .hm-col { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; font-size: 0.95rem; }
.hm-sign-name { font-size: 1.3rem; text-decoration: none; color: #fff; }
.hm-sign-name:hover { color: #fff; }
.hm-head-right { display: flex; align-items: center; gap: 18px; }
.hm-head-mail { color: var(--hm-stone); overflow-wrap: anywhere; }
.hm-head-mail:hover { color: #fff; }
.hm-head-go { display: inline-block; background: var(--hm-door); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  padding: 11px 20px; border-radius: 3px; box-shadow: 0 0 0 2px #fff; white-space: nowrap; }
.hm-head-go:hover { background: var(--hm-door-dark); color: #fff; text-decoration: none; }
@media (max-width: 559px) { .hm-head-mail { display: none; } .hm-sign-name { font-size: 1.12rem; } .hm-head-go { padding: 10px 14px; } }
.hm-tiles { height: 10px; background:
  linear-gradient(45deg, var(--hm-slate) 25%, transparent 25%, transparent 75%, var(--hm-slate) 75%) 0 0 / 20px 20px,
  linear-gradient(45deg, var(--hm-slate) 25%, transparent 25%, transparent 75%, var(--hm-slate) 75%) 10px 10px / 20px 20px,
  linear-gradient(var(--hm-brick), var(--hm-brick)) 0 0 / 100% 100%; }

/* the sign */
.hm-sign { padding: 34px 0 8px; text-align: center; }
.hm-tablet { display: inline-block; background: var(--hm-stone); border: 2px solid var(--hm-stone-edge); box-shadow: inset 0 0 0 5px var(--hm-stone), inset 0 0 0 6px #fff; padding: 22px 34px 18px; max-width: 100%; }
.hm-tablet h1 { margin: 0; font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: 0.02em; text-shadow: 0 1px 0 rgba(255,255,255,0.7); }
.hm-tablet-sub { display: block; margin-top: 6px; font-family: Bitter, Georgia, serif; font-weight: 600; color: var(--hm-slate-soft); }
.hm-intro { text-align: left; font-size: 1.15rem; margin: 22px auto 0; }
.hm-two { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0 8px; }
@media (min-width: 560px) { .hm-two { grid-template-columns: 1fr 1fr; } }
.hm-big { display: block; text-align: center; font-weight: 700; font-size: 1.12rem; text-decoration: none; padding: 16px 18px; border-radius: 3px; line-height: 1.2; }
.hm-big-go { background: var(--hm-door); color: #fff; border-bottom: 3px solid var(--hm-door-dark); }
.hm-big-go:hover { background: var(--hm-door-dark); color: #fff; }
.hm-big-ask { background: var(--hm-paint); color: var(--hm-slate); border: 2px solid var(--hm-slate); }
.hm-big-ask:hover { background: var(--hm-stone); color: var(--hm-slate); text-decoration: none; }
.hm-small { font-size: 0.93rem; color: var(--hm-slate-soft); }

/* sections */
.hm-sec { border-top: 1px solid var(--hm-stone-edge); padding-top: 26px; margin-top: 34px; }
.hm-vanrow { list-style: none; padding: 0; margin: 10px 0 26px; display: grid; gap: 18px; }
@media (min-width: 640px) { .hm-vanrow { grid-template-columns: repeat(3, 1fr); } }
.hm-vanrow svg { display: block; width: 100%; height: auto; margin-bottom: 6px; }
.hm-vanrow b { font-family: Bitter, Georgia, serif; display: block; font-size: 1.05rem; }
.hm-steps { padding-left: 1.3em; }
.hm-steps li { margin: 0 0 0.7em; padding-left: 4px; }
.hm-steps li::marker { font-family: Bitter, Georgia, serif; font-weight: 700; color: var(--hm-brick); }
.hm-list { padding-left: 1.2em; }
.hm-list li { margin: 0 0 0.5em; }
.hm-places { margin: 0; }

/* the two actions, always at the bottom of the screen */
.hm-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--hm-slate); padding: 10px var(--hm-side); }
.hm-bar-inner { max-width: var(--hm-col); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.hm-bar a { display: block; text-align: center; font-weight: 700; text-decoration: none; padding: 12px 8px; border-radius: 3px; line-height: 1.15; font-size: 1rem; }
.hm-bar .hm-bar-go { background: var(--hm-door); color: #fff; border-bottom: 3px solid #0f3a2a; }
.hm-bar .hm-bar-go:hover { background: #237055; }
.hm-bar .hm-bar-ask { background: transparent; color: #fff; border: 2px solid #fff; }

/* booking page */
.hm-booking .hm-col { max-width: 1260px; }
.hm-booking h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 22px 0 6px; }
.hm-booking .hm-lede { margin: 0 0 14px; color: var(--hm-slate-soft); }
.hm-form { border: 2px solid var(--hm-stone-edge); margin-bottom: 28px; position: relative; }
.hm-booking { padding-bottom: 0; }

/* home: a main column and the price box beside it */
.hm-panel { background: var(--hm-stone); border: 2px solid var(--hm-stone-edge); box-shadow: inset 0 0 0 5px var(--hm-stone), inset 0 0 0 6px #fff; padding: 20px 20px 14px; margin: 24px 0 8px; }
.hm-panel h2 { font-size: 1.3rem; margin: 0 0 14px; text-align: center; }
.hm-panel-people { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.9rem; line-height: 1.35; }
.hm-panel-people img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--hm-stone-edge); background: #fff; padding: 3px; margin-bottom: 6px; }
.hm-panel-people b { display: block; font-family: Bitter, Georgia, serif; font-size: 1.08rem; }
.hm-panel > p { font-size: 0.97rem; }
.hm-panel .hm-big { margin: 4px 0 8px; }
.hm-panel .hm-small { text-align: center; margin: 0 0 6px; }
.hm-panel-ask { text-align: center; margin: 0; font-weight: 700; }
@media (min-width: 560px) and (max-width: 1099px) { .hm-panel { max-width: 460px; } }
@media (min-width: 1100px) {
  .hm-home .hm-col { max-width: 1140px; }
  .hm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; column-gap: 52px; }
  .hm-head { grid-column: 1; grid-row: 1; }
  .hm-main { grid-column: 1; grid-row: 2; }
  .hm-panel { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 18px; margin-top: 34px; }
  .hm-home { padding-bottom: 0; }
  .hm-home .hm-bar { display: none; }
}

/* real job photos, framed like the panel */
.hm-photo { margin: 6px 0 4px; }
.hm-photo img, .hm-loads img { display: block; width: 100%; height: auto; border: 2px solid var(--hm-stone-edge); padding: 3px; background: #fff; }
.hm-photo figcaption { font-size: 0.93rem; color: var(--hm-slate-soft); margin-top: 6px; }
.hm-loads { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 16px; font-size: 0.93rem; color: var(--hm-slate-soft); line-height: 1.4; }
.hm-loads img { aspect-ratio: 1; object-fit: cover; margin-bottom: 6px; }
@media (min-width: 560px) { .hm-loads { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 559px) { .hm-loads li { max-width: 340px; } }

/* foot */
.hm-foot { margin-top: 46px; background: var(--hm-stone); border-top: 1px solid var(--hm-stone-edge); font-size: 0.97rem; }
.hm-foot .hm-col { padding-top: 22px; padding-bottom: 26px; }
.hm-foot p { margin: 0 0 8px; }
.hm-foot a { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* the bottom bar slides in once the top buttons are out of view */
html.hm-bar-js .hm-bar { transform: translateY(110%); transition: transform .2s ease; }
html.hm-bar-js .hm-bar.hm-bar-on { transform: none; }
/* stacked vans on phones stay a sensible size */
@media (max-width: 639px) { .hm-vanrow li { max-width: 300px; } }
/* guide and legal pages */
.hm-page-h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); margin: 30px 0 0; }
.hm-plain { padding-top: 26px; }
.hm-plain h1 { font-size: clamp(1.8rem, 4.2vw, 2.4rem); margin: 0 0 14px; }
.hm-plain h2 { font-size: 1.25rem; margin: 1.5em 0 0.4em; }
/* one driver in the price box: photo beside the details */
.hm-panel-people { grid-template-columns: 1fr; }
.hm-panel-people li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.hm-panel-people li img { margin-bottom: 0; }
/* Ilja and his crew with the Luton, right under the opening */
.hm-crew { margin: 18px 0 4px; }
.hm-crew img { display: block; width: 100%; max-width: 560px; height: auto; border: 2px solid var(--hm-stone-edge); padding: 3px; background: #fff; }
.hm-crew figcaption { font-size: 0.93rem; color: var(--hm-slate-soft); margin-top: 6px; }

/* Book a driver part way down the page: the button and one line on what happens next */
.hm-go-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 22px 0 4px; }
.hm-go { display: inline-block; background: var(--hm-door); color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none;
  padding: 13px 24px; border-radius: 3px; border-bottom: 3px solid var(--hm-door-dark); }
.hm-go:hover { background: var(--hm-door-dark); color: #fff; text-decoration: none; }
.hm-go-row span { font-size: 0.95rem; color: var(--hm-slate-soft); }

/* while the booking form loads: a line behind the frame, covered when the form paints, removed on load */
.hm-form iframe { position: relative; z-index: 1; }
.hm-wait { position: absolute; left: 16px; right: 16px; top: 48px; margin: 0; text-align: center; font-family: Bitter, Georgia, serif; font-weight: 700; color: var(--hm-slate); }
.hm-wait::after { content: ""; display: block; width: 48px; height: 48px; margin: 16px auto 0; border-radius: 50%; border: 4px solid var(--hm-stone); border-top-color: var(--hm-door); animation: hm-turn .9s linear infinite; }
@keyframes hm-turn { to { transform: rotate(360deg); } }
.hm-ready .hm-wait { display: none; }
