/* ==========================================================================
   Harbourline Coaches — demonstration website by AB56 Digital (fictional business)
   Identity: warm, welcoming, coastal. Poppins + DM Sans (self-hosted, SIL OFL). Teal, coral, sand.
   ========================================================================== */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --teal: #0E5A5F;
  --teal-d: #0A3F43;
  --teal-l: #DCEBE7;
  --coral: #F26B4F;
  --coral-h: #F4836B;
  --sand: #F7F5F0;
  --sand-d: #ECE7DC;
  --paper: #FFFFFF;
  --ink: #102A2C;
  --muted: #4F6466;
  --line: #E1DCD1;
  --error: #B42318;
  --ok: #0E6B4A;
  --r: 18px;
  --r-sm: 10px;
  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 40px);
  --f-head: "Poppins", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgb(16 42 44 / 0.06), 0 18px 40px -22px rgb(16 42 44 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body.hl {
  background: var(--sand);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.hl-wrap { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); }
.hl-section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.hl-section--paper { background: var(--paper); }
.hl-section--teal { background: var(--teal-d); color: var(--sand); }
.hl-eyebrow { color: var(--teal); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.hl-section--teal .hl-eyebrow { color: var(--coral-h); }
.hl-head { max-width: 680px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.hl-head p:not(.hl-eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }
.hl-section--teal .hl-head p:not(.hl-eyebrow) { color: #B9D3D0; }
.hl-head--center { margin-inline: auto; text-align: center; }

.hl-skip { position: absolute; left: 12px; top: -80px; z-index: 2000; padding: 10px 16px; background: var(--coral); color: var(--ink); font-weight: 700; border-radius: 8px; }
.hl-skip:focus { top: 56px; }

/* ---------- Buttons ---------- */
.hl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--f-head);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.hl-btn:hover { transform: translateY(-1px); }
.hl-btn--coral { background: var(--coral); color: var(--ink); }
.hl-btn--coral:hover { background: var(--coral-h); color: var(--ink); }
.hl-btn--teal { background: var(--teal); color: #fff; }
.hl-btn--teal:hover { background: var(--teal-d); color: #fff; }
.hl-btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.hl-btn--outline:hover { background: var(--teal); color: #fff; }
.hl-btn--light { border-color: rgb(247 245 240 / 0.5); color: var(--sand); }
.hl-btn--light:hover { background: var(--sand); color: var(--teal-d); }
.hl-btn--block { width: 100%; }

/* ---------- Top bar and header ---------- */
.hl-topbar { background: var(--teal-d); color: #B9D3D0; font-size: 0.875rem; }
.hl-topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.hl-topbar__contact { color: var(--sand); font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) { .hl-topbar__inner > p:first-child { display: none; } .hl-topbar__inner { justify-content: center; } }

.hl-header { position: sticky; top: 0; z-index: 900; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow 0.2s; }
.hl-header.is-stuck { box-shadow: 0 10px 30px -20px rgb(16 42 44 / 0.5); }
.hl-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.hl-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.hl-logo__text { display: grid; line-height: 1; }
.hl-logo__name { font: 700 1.375rem/1 var(--f-head); letter-spacing: -0.02em; }
.hl-logo__sub { margin-top: 3px; font: 600 0.72rem/1 var(--f-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral); }
.hl-logo--light { color: var(--sand); }

.hl-nav { display: flex; align-items: center; gap: 6px; }
.hl-nav a:not(.hl-btn) {
  position: relative;
  padding: 12px 14px;
  color: var(--ink);
  font: 600 1rem/1 var(--f-head);
  text-decoration: none;
  border-radius: 999px;
}
.hl-nav a:not(.hl-btn):hover { background: var(--sand); }
.hl-nav a[aria-current="page"]:not(.hl-btn) { color: var(--teal); background: var(--teal-l); }
.hl-nav__cta { margin-left: 10px; min-height: 46px; }

.hl-burger { display: none; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 0.95rem/1 var(--f-head); cursor: pointer; }
.hl-burger__lines, .hl-burger__lines::before, .hl-burger__lines::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s, background 0.2s; }
.hl-burger__lines { position: relative; }
.hl-burger__lines::before, .hl-burger__lines::after { content: ""; position: absolute; left: 0; }
.hl-burger__lines::before { top: -6px; } .hl-burger__lines::after { top: 6px; }
.hl-burger[aria-expanded="true"] .hl-burger__lines { background: transparent; }
.hl-burger[aria-expanded="true"] .hl-burger__lines::before { transform: translateY(6px) rotate(45deg); }
.hl-burger[aria-expanded="true"] .hl-burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .hl-burger { display: inline-flex; }
  .js .hl-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--pad) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(16 42 44 / 0.45);
    display: none;
  }
  .js .hl-nav.is-open { display: flex; }
  .js .hl-nav a:not(.hl-btn) { padding: 16px 14px; font-size: 1.125rem; border-radius: 12px; }
  .js .hl-nav__cta { margin: 8px 0 0; min-height: 52px; }
  .no-js .hl-header__inner { flex-wrap: wrap; padding-block: 10px; }
  .no-js .hl-nav { flex-wrap: wrap; }
}

/* ---------- Photos ----------
   Responsive <picture> elements; sources live in /assets/demos/harbourline/photos/
   (generated by scripts/optimise_photos.py). The background shows while loading. */
.hl-photo { position: relative; overflow: hidden; background: var(--sand-d); border-radius: var(--r); }
.hl-photo picture { display: block; width: 100%; height: 100%; }
.hl-photo img { width: 100%; height: 100%; object-fit: cover; }
.hl-img--weddings { object-position: 62% 50%; }
.hl-img--hero { object-position: 50% 45%; }

/* ---------- Hero ---------- */
.hl-hero { position: relative; background: var(--teal-d); color: var(--sand); }
.hl-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: clamp(460px, 62vh, 620px); }
.hl-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(1.5rem, 4vw, 4rem) clamp(6rem, 5rem + 3vw, 8rem) max(var(--pad), calc((100vw - var(--wrap)) / 2)); }
.hl-hero__copy h1 { color: #fff; max-width: 12ch; }
.hl-hero__copy h1 em { font-style: normal; color: var(--coral-h); }
.hl-hero__lead { margin-top: 20px; max-width: 30em; color: #CFE2DF; font-size: 1.1875rem; }
.hl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hl-hero__photo { border-radius: 0; min-height: 100%; }
.hl-hero__photo.hl-photo { border-radius: 0 0 0 48px; }

/* Quick quote bar */
.hl-quick { position: relative; z-index: 2; margin-top: -64px; }
.hl-quick__card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 22px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hl-quick__title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.hl-quick__title h2 { font-size: 1.25rem; }
.hl-quick__title p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 1000px) { .hl-quick__card { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hl-quick__card .hl-btn { grid-column: 1 / -1; } }
/* Below 1200px the hero stacks, so the photo always crops between 1:1 and 16:10 */
@media (max-width: 1200px) {
  .hl-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hl-hero__copy { padding: 44px var(--pad) 36px; }
  .hl-hero__copy h1 { max-width: 16ch; }
  .hl-hero__photo { aspect-ratio: 16 / 10; max-height: 70vh; }
  .hl-hero__photo.hl-photo { border-radius: 0; }
  .hl-hero { padding-bottom: 72px; }
}
@media (max-width: 520px) { .hl-quick__card { grid-template-columns: minmax(0, 1fr); padding: 18px; } }

/* ---------- Form fields ---------- */
.hl-field { display: grid; gap: 6px; }
.hl-field > label, .hl-label { font-weight: 700; font-size: 0.9375rem; }
.hl-field .hl-hint { color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.hl-input, .hl-select, .hl-textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #CFC8BA;
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hl-textarea { min-height: 110px; resize: vertical; }
.hl-select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23102A2C' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.hl-input:focus, .hl-select:focus, .hl-textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgb(14 90 95 / 0.18); }
.hl-field.has-error .hl-input, .hl-field.has-error .hl-select, .hl-field.has-error .hl-textarea { border-color: var(--error); }
.hl-error { display: none; color: var(--error); font-size: 0.875rem; font-weight: 700; }
.hl-field.has-error .hl-error { display: block; }

/* ---------- Trust strip ---------- */
.hl-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 40px 0 0; }
.hl-trust li { display: flex; gap: 12px; align-items: flex-start; }
.hl-trust svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--teal-l); color: var(--teal); }
.hl-trust strong { display: block; font-family: var(--f-head); font-weight: 600; }
.hl-trust span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) { .hl-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hl-trust { grid-template-columns: minmax(0, 1fr); } }
ul.hl-trust, ul.hl-list-reset { list-style: none; padding: 0; }

/* ---------- Service cards ---------- */
.hl-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hl-service { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); transition: transform 0.25s; }
.hl-service:hover { transform: translateY(-4px); }
.hl-service .hl-photo { aspect-ratio: 4 / 3; border-radius: 0; }
.hl-service__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; flex: 1; }
.hl-service p { color: var(--muted); font-size: 0.95rem; }
.hl-service a { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; }
.hl-service a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 1000px) { .hl-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hl-services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Fleet ---------- */
.hl-fleet-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.hl-fleet-row > * { scroll-snap-align: start; }
.hl-fleet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .hl-fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hl-fleet-grid { grid-template-columns: minmax(0, 1fr); } }

.hl-vehicle { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.hl-vehicle[hidden] { display: none; }
.hl-vehicle .hl-photo { aspect-ratio: 16 / 10; border-radius: 0; }
.hl-vehicle__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.hl-vehicle__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hl-vehicle__seats { flex: none; text-align: center; padding: 6px 12px; border-radius: 12px; background: var(--teal-l); color: var(--teal); line-height: 1.1; }
.hl-vehicle__seats b { display: block; font: 700 1.5rem/1 var(--f-head); }
.hl-vehicle__seats small { font-size: 0.75rem; font-weight: 700; }
.hl-vehicle p { color: var(--muted); font-size: 0.95rem; }
.hl-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 14px 0; border-block: 1px solid var(--line); font-size: 0.9rem; }
.hl-specs dt { color: var(--muted); font-size: 0.8125rem; }
.hl-specs dd { margin: 0; font-weight: 700; }
.hl-features { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.hl-features li { padding: 4px 10px; border-radius: 999px; background: var(--sand); font-size: 0.8125rem; font-weight: 600; }
.hl-vehicle .hl-btn { margin-top: auto; }

.hl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hl-chip { min-height: 44px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 0.95rem/1 var(--f-head); cursor: pointer; }
.hl-chip:hover { border-color: var(--teal); }
.hl-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.hl-filter-status { margin: -12px 0 22px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Steps ---------- */
.hl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; counter-reset: step; }
.hl-steps li { position: relative; padding: 26px; border-radius: var(--r); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(247 245 240 / 0.14); counter-increment: step; }
.hl-steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--coral); color: var(--ink); font: 700 1.1rem/1 var(--f-head); }
.hl-steps p { margin-top: 8px; color: #B9D3D0; }
@media (max-width: 800px) { .hl-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split rows (services page) ---------- */
.hl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hl-split + .hl-split { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.hl-split--flip .hl-photo { order: 2; }
.hl-split .hl-photo { aspect-ratio: 5 / 4; }
.hl-split p { color: var(--muted); margin-top: 14px; }
.hl-ticks { display: grid; gap: 10px; margin: 20px 0 26px; padding: 0; list-style: none; }
.hl-ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
.hl-ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--teal-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%230E5A5F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
@media (max-width: 820px) { .hl-split { grid-template-columns: minmax(0, 1fr); } .hl-split--flip .hl-photo { order: 0; } }

/* ---------- Page hero (inner pages) ---------- */
.hl-pagehero { background: var(--teal-d); color: var(--sand); padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.hl-pagehero h1 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); }
.hl-pagehero p { margin-top: 14px; max-width: 40em; color: #CFE2DF; font-size: 1.125rem; }
.hl-crumbs { display: flex; gap: 8px; margin-bottom: 14px; color: #9FC2BE; font-size: 0.9rem; list-style: none; padding: 0; }
.hl-crumbs a { color: #CFE2DF; }
.hl-crumbs li + li::before { content: "/"; margin-right: 8px; color: #6C9C97; }

/* ---------- CTA ---------- */
.hl-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--coral); color: var(--ink); }
.hl-cta p { margin-top: 8px; font-size: 1.0625rem; }
.hl-cta .hl-btn--teal { min-height: 54px; }
@media (max-width: 720px) { .hl-cta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Quote wizard ---------- */
.hl-quote { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .hl-quote { grid-template-columns: minmax(0, 1fr); } }
.hl-panel { padding: clamp(20px, 3vw, 36px); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.hl-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; list-style: none; padding: 0; }
.hl-progress li { display: grid; gap: 8px; font: 600 0.85rem/1.2 var(--f-head); color: var(--muted); }
.hl-progress li::before { content: ""; height: 6px; border-radius: 6px; background: var(--sand-d); }
.hl-progress li.is-done::before, .hl-progress li.is-current::before { background: var(--teal); }
.hl-progress li.is-current { color: var(--ink); }
@media (max-width: 520px) { .hl-progress li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .hl-progress li.is-current span { position: static; width: auto; height: auto; clip: auto; } }

.hl-step { border: 0; padding: 0; min-width: 0; }
.hl-step[hidden] { display: none; }
.hl-step legend { padding: 0; margin-bottom: 6px; font: 600 1.6rem/1.2 var(--f-head); }
.hl-step__intro { color: var(--muted); margin-bottom: 24px; }
.hl-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hl-grid2 .hl-span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .hl-grid2 { grid-template-columns: minmax(0, 1fr); } }
.hl-stack { display: grid; gap: 18px; }

.hl-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hl-type { position: relative; }
.hl-type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.hl-type label { display: grid; gap: 2px; padding: 16px 18px 16px 52px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.hl-type label::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #A9A194; background: #fff; }
.hl-type label b { font-family: var(--f-head); font-weight: 600; }
.hl-type label span { color: var(--muted); font-size: 0.875rem; }
.hl-type input:checked + label { border-color: var(--teal); background: #F1F7F6; }
.hl-type input:checked + label::before { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 0 5px, #fff 6px); }
.hl-type input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 2px; }
@media (max-width: 560px) { .hl-types { grid-template-columns: minmax(0, 1fr); } }

.hl-toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; cursor: pointer; }
.hl-toggle input { width: 22px; height: 22px; accent-color: var(--teal); }
.hl-reveal[hidden] { display: none; }

.hl-stepper { display: inline-grid; grid-template-columns: 50px 90px 50px; border: 1.5px solid #CFC8BA; border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.hl-stepper button { border: 0; background: var(--sand); font: 700 1.4rem/1 var(--f-head); cursor: pointer; }
.hl-stepper button:hover { background: var(--sand-d); }
.hl-stepper input { min-height: 50px; border: 0; border-inline: 1.5px solid #CFC8BA; text-align: center; font: 700 1.2rem/1 var(--f-head); -moz-appearance: textfield; }
.hl-stepper input::-webkit-outer-spin-button, .hl-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.hl-suggest { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--teal-l); }
.hl-suggest b { font-family: var(--f-head); }
.hl-suggest p { color: var(--teal-d); font-size: 0.9375rem; }

.hl-wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.hl-wizard-nav .hl-btn[hidden] { display: none; }
.hl-error-summary { display: none; margin-bottom: 22px; padding: 16px 18px; border-radius: 12px; border: 2px solid var(--error); background: #FEF3F2; }
.hl-error-summary.is-visible { display: block; }
.hl-error-summary h3 { font-size: 1.05rem; color: var(--error); margin-bottom: 6px; }
.hl-error-summary ul { margin: 0; padding-left: 20px; }
.hl-error-summary a { color: var(--error); font-weight: 700; }

.hl-review { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hl-review div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hl-review dt { color: var(--muted); font-weight: 600; }
.hl-review dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 520px) { .hl-review div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.hl-demo-note { display: flex; gap: 10px; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #FFF6E8; border: 1px solid #F3D9A8; color: #6B4A12; font-size: 0.9rem; }

.hl-aside { display: grid; gap: 18px; position: sticky; top: 100px; }
.hl-aside .hl-photo { aspect-ratio: 4 / 3; }
.hl-aside h2 { font-size: 1.25rem; margin-bottom: 10px; }
.hl-aside ul { display: grid; gap: 8px; padding-left: 20px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .hl-aside { position: static; } }

.hl-done { text-align: center; padding: clamp(24px, 4vw, 48px) 8px; }
.hl-done__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--teal-l); color: var(--teal); }
.hl-done__icon svg { width: 34px; height: 34px; }
.hl-done p { max-width: 34em; margin: 12px auto 0; color: var(--muted); }
.hl-done__ref { display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: 999px; background: var(--sand); font: 700 1rem/1.2 var(--f-head); letter-spacing: 0.04em; }
.hl-done .hl-btn { margin-top: 26px; }

/* ---------- Footer ---------- */
.hl-footer { background: var(--teal-d); color: #B9D3D0; padding-top: 56px; font-size: 0.95rem; }
.hl-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.hl-footer__about { margin-top: 16px; max-width: 30em; }
.hl-footer__h { margin-bottom: 14px; color: #fff; font-size: 1.05rem; }
.hl-footer ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.hl-footer ul a { color: #CFE2DF; text-decoration: none; }
.hl-footer ul a:hover { color: #fff; text-decoration: underline; }
.hl-footer__contact { margin-bottom: 18px; color: var(--sand); }
.hl-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid rgb(247 245 240 / 0.14); font-size: 0.8125rem; color: #9FC2BE; }
@media (max-width: 800px) { .hl-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hl-footer__grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .hl-footer__grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.hl-h3 { font-size: 1.3rem; }
.hl-more { margin-top: 28px; }
.hl-aside p { color: var(--muted); font-size: 0.95rem; }
.hl-edit { margin-left: 6px; padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--teal); font: 700 0.8125rem/1.6 var(--f-body); cursor: pointer; }
.hl-edit:hover { border-color: var(--teal); }
.hl-wizard-nav [data-hl-next], .hl-wizard-nav [data-hl-submit] { margin-left: auto; }

/* Very small phones: keep the header on one line */
@media (max-width: 380px) {
  .hl-burger { padding: 0 13px; }
  .hl-burger__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hl-logo__name { font-size: 1.2rem; }
  .hl-logo__mark { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
  .hl-btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
}
