/* Concept homepages: nine trades, nine layouts. Shared by the home page, /websites (EN/LV/RU) and /work.
   Each .hp sits in a frame with container-type: inline-size; units are cqw of that frame. */
/* ── The concept homepages. Units are cqw of the frame they sit in. ── */
.hp {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --s-ink: #22302a; --s-sub: #4d5b53; --s-accent: #5d7a5a; --s-on: #fff; --s-bg: #faf8f4; --s-line: #e7e1d6; --s-veil: 250, 248, 244;
  --s-cta: var(--s-ink); --s-cta-on: #fff; --hl: 1px;
  position: absolute; inset: 0; overflow: hidden; display: grid;
  isolation: isolate; /* layers inside a layout never rise above the page around it (the trade picker's radio sits on top) */
  background: var(--s-bg); color: var(--s-ink); font: 400 1.5cqw/1.2 var(--font); text-align: left;
}
:where(.hp) ul { list-style: none; margin: 0; padding: 0; }
:where(.hp) i { font-style: normal; }
:where(.hp) b { font-weight: inherit; }
.hp-bar { display: flex; align-items: center; gap: 2.6cqw; padding: 1.7cqw 3cqw; }
.hp-logo { max-width: 34cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 720; font-size: 2.1cqw; letter-spacing: -0.02em; }
.hp-nav { display: flex; gap: 2.4cqw; color: var(--s-sub); white-space: nowrap; }
.hp-lang { margin-left: auto; color: var(--s-sub); font-size: 1.3cqw; letter-spacing: 0.04em; white-space: nowrap; }
.hp-btn { flex: none; min-width: 10cqw; padding: 0.85cqw 1.6cqw; border-radius: 99px; background: var(--s-accent); color: var(--s-on); font-weight: 600; font-size: 1.4cqw; text-align: center; white-space: nowrap; }
.hp-photo { display: block; min-width: 0; min-height: 0; overflow: hidden; }
.hp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 62% 50%); }
.hp-copy { display: grid; align-content: center; justify-items: start; gap: 1.5cqw; min-width: 0; }
.hp-h { font-size: 4.6cqw; line-height: 1.03; font-weight: 720; letter-spacing: -0.03em; }
.hp-p { font-size: 1.6cqw; color: var(--s-sub); }
.hp-k { font: 600 1.15cqw/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--s-sub); }
.hp-cta { display: inline-block; padding: 1.25cqw 2.6cqw; border-radius: 99px; background: var(--s-cta); color: var(--s-cta-on); font-size: 1.6cqw; font-weight: 600; white-space: nowrap; }
.hp-slot { display: inline-flex; align-items: center; gap: 0.9cqw; padding: 0.75cqw 1.5cqw; border-radius: 99px; background: #fff; color: #22302a; font-size: 1.35cqw; white-space: nowrap; box-shadow: 0 0.4cqw 1.6cqw -0.6cqw rgba(34, 48, 42, 0.35); }
.hp-slot i { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: #2f9e62; }
.hp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6cqw; }
/* fields in a row: reserve a table, check in and out */
.hp-fields { display: flex; align-items: stretch; text-align: left; }
.hp-fields > span:not(.hp-cta) { display: grid; gap: 0.2cqw; padding: 1.1cqw 2.4cqw; border-right: var(--hl) solid rgba(0, 0, 0, 0.14); }
.hp-fields i { font: 600 1.05cqw/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.hp-fields b { font-size: 1.7cqw; font-weight: 600; white-space: nowrap; }
.hp-fields .hp-cta { display: grid; place-items: center; border-radius: 0; }
/* small cards cut from the trade's own photograph */
.hp-cards { display: grid; }
.hp-cards li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5cqw 1cqw; font-size: 1.4cqw; }
.hp-cards li b { font-weight: 650; }
.hp-crop { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 8; border-radius: 0.8cqw; background: var(--s-line) no-repeat var(--px, 50%) var(--py, 50%) / var(--pz, 230%); }
.is-inked .hp-crop, html:not(.ink) .hp-crop { background-image: var(--ph); }
.hp--guesthouse { --ph: url("../images/concepts/guesthouse-800.jpg"); }
.hp--cafe { --ph: url("../images/concepts/bakery-800.jpg"); }
.hp--realestate { --ph: url("../images/concepts/realestate-800.jpg"); }
.hp-crop--bed { --ph: url("../images/concepts/guesthouse-800.jpg"); }
@supports (background-image: image-set(url("a.avif") type("image/avif"))) {
  .hp--guesthouse, .hp-crop--bed { --ph: image-set(url("../images/concepts/guesthouse-800.avif") type("image/avif"), url("../images/concepts/guesthouse-800.webp") type("image/webp")); }
  .hp--cafe { --ph: image-set(url("../images/concepts/bakery-800.avif") type("image/avif"), url("../images/concepts/bakery-800.webp") type("image/webp")); }
  .hp--realestate { --ph: image-set(url("../images/concepts/realestate-800.avif") type("image/avif"), url("../images/concepts/realestate-800.webp") type("image/webp")); }
}

/* 1 · Hair salon: the photograph on the left, a price list beside it */
.hp--salon { grid-template: "bar bar" auto "photo copy" minmax(0, 1fr) / 44% minmax(0, 1fr); }
.hp--salon .hp-bar { grid-area: bar; border-bottom: var(--hl) solid var(--s-line); }
.hp--salon .hp-logo { font-stretch: 104%; }
.hp--salon .hp-photo { grid-area: photo; --pos: 72% 50%; }
.hp--salon .hp-copy { grid-area: copy; gap: 1.2cqw; padding: 1.6cqw 4cqw; }
.hp--salon .hp-h { font-stretch: 104%; }
.hp-list { display: grid; gap: 0.7cqw; width: 100%; margin: 0.4cqw 0 0.6cqw; font-size: 1.55cqw; }
.hp-list li { display: flex; justify-content: space-between; gap: 2cqw; padding-bottom: 0.6cqw; border-bottom: var(--hl) dotted var(--s-sub); }
.hp-list b { font-weight: 650; font-variant-numeric: tabular-nums; }

/* 2 · Dental clinic: calm and light, the photograph as a card, the next free slots on it */
.hp--clinic {
  --s-ink: #0f3b3f; --s-sub: #41666a; --s-accent: #1c6b70; --s-bg: #f7fafa; --s-line: #dbe7e7; --s-cta: #1c6b70;
  grid-template: "bar bar" auto "copy photo" minmax(0, 1fr) / 45% minmax(0, 1fr);
}
.hp--clinic .hp-bar { grid-area: bar; }
.hp--clinic .hp-logo { font-weight: 560; letter-spacing: 0; }
.hp--clinic .hp-btn, .hp--clinic .hp-cta { border-radius: 1cqw; }
.hp--clinic .hp-copy { grid-area: copy; gap: 1.9cqw; padding: 0 3cqw 3cqw 5cqw; }
.hp--clinic .hp-h { font-size: 5.3cqw; font-weight: 460; letter-spacing: -0.025em; line-height: 1.08; }
.hp--clinic .hp-p { max-width: 31cqw; font-size: 1.65cqw; line-height: 1.45; }
.hp--clinic .hp-photo { grid-area: photo; margin: 0.6cqw 3cqw 3cqw 0; border-radius: 2.4cqw; --pos: 72% 50%; }
.hp-next { grid-area: photo; align-self: end; justify-self: start; z-index: 1; display: grid; gap: 1cqw; width: 24cqw; margin: 0 0 5.4cqw -3.4cqw; padding: 1.6cqw 1.8cqw; border-radius: 1.6cqw; background: #fff; box-shadow: 0 1.4cqw 3.4cqw -1.6cqw rgba(15, 59, 63, 0.4); }
.hp-slots { display: grid; gap: 0.6cqw; font-size: 1.45cqw; }
.hp-slots li { display: flex; justify-content: space-between; align-items: center; padding: 0.7cqw 1cqw; border: var(--hl) solid var(--s-line); border-radius: 0.9cqw; }
.hp-slots b { font-weight: 600; }
.hp-slots i { color: var(--s-accent); font-weight: 600; }

/* 3 · Auto service: a dark full-bleed photograph, a poster headline, the price list along the bottom */
.hp--garage {
  --s-ink: #fff; --s-sub: #c5cedb; --s-accent: #f5c02e; --s-on: #14181f; --s-bg: #0e141e; --s-cta: #f5c02e; --s-cta-on: #14181f;
  grid-template: "bar" auto "copy" minmax(0, 1fr) "mod" auto / minmax(0, 1fr);
}
.hp--garage .hp-photo, .hp--restaurant .hp-photo { grid-area: 1 / 1 / -1 / -1; }
.hp--garage::before, .hp--restaurant::before { content: ""; grid-area: 1 / 1 / -1 / -1; z-index: 1; }
.hp--garage::before { background: linear-gradient(180deg, rgba(10, 14, 22, 0.78), rgba(10, 14, 22, 0.3) 42%, rgba(10, 14, 22, 0.9)); }
.hp--garage > :not(.hp-photo), .hp--restaurant > :not(.hp-photo) { position: relative; z-index: 2; }
.hp--garage .hp-photo { --pos: 60% 38%; }
.hp--garage .hp-bar { grid-area: bar; }
.hp--garage .hp-logo { font-weight: 800; font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; }
.hp--garage .hp-btn, .hp--garage .hp-cta { border-radius: 0.5cqw; }
.hp--garage .hp-copy { grid-area: copy; align-content: end; gap: 1.3cqw; padding: 0 3cqw 2.2cqw; }
.hp--garage .hp-h { font-size: 6.4cqw; font-weight: 800; font-stretch: 112%; line-height: 0.96; letter-spacing: -0.02em; text-transform: uppercase; }
.hp--garage .hp-cta { font-size: 1.4cqw; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hp-prices { grid-area: mod; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--s-accent); color: var(--s-on); font-family: var(--mono); }
.hp-prices li { display: grid; gap: 0.3cqw; padding: 1.3cqw 1.8cqw; border-left: var(--hl) solid rgba(20, 24, 31, 0.25); font-size: 1.2cqw; }
.hp-prices b { font-size: 1.9cqw; font-weight: 700; }

/* 4 · Restaurant: full-bleed and warm, a centred serif headline, a bar to reserve a table */
.hp--restaurant {
  --s-ink: #f8efe2; --s-sub: #d8c6b1; --s-accent: #e9a35b; --s-on: #1d120a; --s-bg: #1a0f08; --s-cta: #e9a35b; --s-cta-on: #1d120a;
  grid-template: "bar" auto "copy" minmax(0, 1fr) "mod" auto / minmax(0, 1fr); text-align: center;
}
.hp--restaurant::before { background: radial-gradient(120% 95% at 50% 38%, rgba(26, 15, 8, 0.34), rgba(26, 15, 8, 0.9)); }
.hp--restaurant .hp-photo { --pos: 50% 50%; }
.hp--restaurant .hp-bar { grid-area: bar; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.hp--restaurant .hp-logo { max-width: 38cqw; font-family: var(--serif); font-weight: 400; font-size: 2.2cqw; letter-spacing: 0.22em; text-transform: uppercase; }
.hp-end { justify-self: end; display: flex; align-items: center; gap: 2.2cqw; }
.hp--restaurant .hp-btn { border-radius: 0; background: transparent; color: var(--s-ink); box-shadow: inset 0 0 0 var(--hl) var(--s-accent); }
.hp--restaurant .hp-copy { grid-area: copy; justify-items: center; gap: 1.6cqw; padding: 0 6cqw; }
.hp--restaurant .hp-k { color: var(--s-accent); }
.hp--restaurant .hp-h { font-family: var(--serif); font-weight: 400; font-size: 6cqw; line-height: 1.05; letter-spacing: -0.01em; }
.hp-reserve { grid-area: mod; justify-self: center; margin-bottom: 4cqw; background: #f8efe2; color: #2a1a0e; }

/* 5 · Guesthouse: the photograph on top, check-in and check-out across it, room cards below */
.hp--guesthouse {
  --s-ink: #3a2a1c; --s-sub: #6b5846; --s-accent: #8a5a2b; --s-bg: #fbf7f0; --s-line: #eadfce; --s-veil: 251, 247, 240; --s-cta: #8a5a2b;
  grid-template: "bar" auto "photo" minmax(0, 1fr) "cards" auto / minmax(0, 1fr);
}
.hp--guesthouse .hp-bar { grid-area: bar; }
.hp--guesthouse .hp-logo { font-family: var(--serif); font-weight: 400; font-size: 2.5cqw; letter-spacing: 0; }
.hp--guesthouse .hp-btn { border-radius: 0.4cqw; }
.hp--guesthouse .hp-photo { grid-area: photo; --pos: 60% 62%; }
.hp--guesthouse .hp-copy { grid-area: photo; z-index: 1; align-content: start; gap: 1cqw; padding: 2.6cqw 4cqw; background: linear-gradient(90deg, rgba(var(--s-veil), 0.92), rgba(var(--s-veil), 0) 64%); }
.hp--guesthouse .hp-h { max-width: 32cqw; font-family: var(--serif); font-weight: 400; font-size: 4.6cqw; line-height: 1.08; letter-spacing: -0.01em; }
.hp-booking { grid-area: photo; z-index: 2; align-self: end; justify-self: center; margin-bottom: -2.5cqw; overflow: hidden; border-radius: 0.8cqw; background: #fff; color: #3a2a1c; box-shadow: 0 1.4cqw 3.4cqw -1.4cqw rgba(58, 42, 28, 0.45); }
.hp--guesthouse .hp-cards { grid-area: cards; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqw; padding: 4.3cqw 3cqw 1.8cqw; }

/* 6 · Plumber: a split screen, the phone number is the headline, the callout area along the bottom */
.hp--trades {
  --s-ink: #10304a; --s-sub: #44607a; --s-accent: #1f6fb2; --s-bg: #f6fafd; --s-line: #d9e6f1; --s-cta: #fff; --s-cta-on: #1f6fb2;
  grid-template: "copy photo" minmax(0, 1fr) "area area" auto / 52% minmax(0, 1fr);
}
.hp--trades .hp-copy { grid-area: copy; gap: 1.4cqw; padding: 2.4cqw 4cqw; background: var(--s-accent); color: #fff; }
.hp--trades .hp-logo { max-width: 100%; margin-bottom: 1.2cqw; font-size: 1.7cqw; font-weight: 600; letter-spacing: 0; }
.hp--trades .hp-h { font-size: 3.3cqw; font-weight: 600; letter-spacing: -0.02em; }
.hp-tel { font-size: 4.5cqw; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp--trades .hp-p { color: rgba(255, 255, 255, 0.86); }
.hp--trades .hp-cta, .hp-btn2 { border-radius: 0.8cqw; }
.hp-btn2 { padding: 1.25cqw 2.2cqw; box-shadow: inset 0 0 0 var(--hl) rgba(255, 255, 255, 0.7); font-size: 1.6cqw; font-weight: 600; white-space: nowrap; }
.hp--trades .hp-photo { grid-area: photo; --pos: 78% 50%; }
.hp--trades .hp-lang { grid-area: photo; z-index: 1; align-self: start; justify-self: end; margin: 2cqw 2.4cqw; padding: 0.6cqw 1.3cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.92); color: var(--s-ink); }
.hp-area { grid-area: area; display: flex; align-items: center; gap: 2.6cqw; padding: 1.4cqw 4cqw; border-top: var(--hl) solid var(--s-line); background: var(--s-bg); font-size: 1.4cqw; white-space: nowrap; }
.hp-area i { font: 600 1.1cqw/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--s-sub); }
.hp-area span { position: relative; padding-left: 1.9cqw; }
.hp-area span::before { content: ""; position: absolute; left: 0; top: 50%; width: 1cqw; height: 1cqw; margin-top: -0.5cqw; border: 0.25cqw solid var(--s-accent); border-radius: 50%; box-sizing: border-box; }

/* 7 · Physio: the week's free sessions as a grid, the photograph in an arch */
.hp--physio {
  --s-ink: #173b35; --s-sub: #4b6a63; --s-accent: #2f7d6b; --s-bg: #f5faf8; --s-line: #d9e8e3; --s-cta: #173b35;
  grid-template: "bar bar" auto "copy photo" auto "week photo" minmax(0, 1fr) / minmax(0, 1fr) 33%;
}
.hp--physio .hp-bar { grid-area: bar; }
.hp--physio .hp-logo { font-weight: 600; letter-spacing: -0.01em; }
.hp--physio .hp-btn, .hp--physio .hp-cta { border-radius: 1.4cqw; }
.hp--physio .hp-copy { grid-area: copy; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.8cqw 2cqw; padding: 0.8cqw 3cqw 1.8cqw 4cqw; }
.hp--physio .hp-h { font-size: 5cqw; font-weight: 640; letter-spacing: -0.035em; }
.hp--physio .hp-p { grid-column: 1; }
.hp--physio .hp-cta { grid-column: 2; grid-row: 1 / span 2; }
.hp--physio .hp-photo { grid-area: photo; margin: 0.6cqw 3cqw 3cqw 0; border-radius: 16.5cqw 16.5cqw 1.6cqw 1.6cqw; --pos: 46% 50%; }
.hp-week { grid-area: week; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.1cqw; margin: 0 3cqw 3cqw 4cqw; padding: 1.5cqw 1.8cqw 1.8cqw; border: var(--hl) solid var(--s-line); border-radius: 1.8cqw; background: #fff; }
.hp-grid { display: grid; grid-template-columns: 5.6cqw repeat(5, minmax(0, 1fr)); grid-auto-rows: minmax(3.1cqw, 1fr); gap: 0.6cqw; font-size: 1.2cqw; }
.hp-grid i:nth-child(-n+6) { align-self: end; }
.hp-grid i { display: grid; place-items: center; border-radius: 0.7cqw; }
.hp-grid .d { color: var(--s-sub); font-weight: 600; }
.hp-grid .t { justify-items: start; color: var(--s-sub); font-family: var(--mono); }
.hp-grid .f { background: var(--s-accent); color: #fff; font-weight: 600; }
.hp-grid .x { background: repeating-linear-gradient(135deg, var(--s-line) 0 1px, transparent 1px 0.7cqw); }

/* 8 · Bakery: the opening hours are the headline, what is in the oven is a row of menu cards */
.hp--cafe {
  --s-ink: #4a2c14; --s-sub: #7a5a3f; --s-accent: #b8651c; --s-bg: #fcf5e8; --s-line: #efdfc6; --s-cta: #4a2c14;
  grid-template: "bar bar" auto "copy photo" minmax(0, 1fr) "menu menu" auto / 52% minmax(0, 1fr);
}
.hp--cafe .hp-bar { grid-area: bar; }
.hp--cafe .hp-logo { font-family: var(--serif); font-weight: 700; font-size: 2.4cqw; letter-spacing: 0; }
.hp--cafe .hp-copy { grid-area: copy; gap: 1.1cqw; padding: 0 2cqw 1.4cqw 4cqw; }
.hp--cafe .hp-h { font-size: 8cqw; font-weight: 800; font-stretch: 112%; line-height: 0.92; letter-spacing: -0.04em; color: var(--s-accent); white-space: nowrap; }
.hp--cafe .hp-photo { grid-area: photo; margin-right: 3cqw; border-radius: 1.6cqw 1.6cqw 0 0; --pos: 78% 60%; }
.hp-menu { grid-area: menu; position: relative; z-index: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6cqw; padding: 1.5cqw 3cqw 1.8cqw 4cqw; border-top: var(--hl) solid var(--s-line); background: #fff; }
.hp-menu .hp-crop { aspect-ratio: 16 / 7; --pz: 300%; }

/* 9 · Real estate: a search panel on the left, listings on the right */
.hp--realestate {
  --s-ink: #1f2a37; --s-sub: #4d5a6b; --s-accent: #33415c; --s-bg: #fff; --s-line: #e3e0d8;
  grid-template: "bar bar" auto "copy list" minmax(0, 1fr) / 37% minmax(0, 1fr);
}
.hp--realestate .hp-bar { grid-area: bar; border-bottom: var(--hl) solid var(--s-line); }
.hp--realestate .hp-logo { font-size: 1.6cqw; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hp--realestate .hp-btn, .hp--realestate .hp-cta { border-radius: 0.4cqw; }
.hp--realestate .hp-copy { grid-area: copy; gap: 1.5cqw; padding: 1.6cqw 2.6cqw 1.6cqw 4cqw; }
.hp--realestate .hp-h { font-size: 4.1cqw; font-weight: 640; }
.hp-search { display: grid; gap: 0.9cqw; width: 100%; font-size: 1.4cqw; }
.hp-seg { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: var(--hl) solid var(--s-ink); border-radius: 0.4cqw; text-align: center; }
.hp-seg b, .hp-seg i { padding: 0.7cqw; }
.hp-seg b { background: var(--s-ink); color: #fff; font-weight: 600; }
.hp-fld { display: flex; justify-content: space-between; padding: 0.9cqw 1.2cqw; border: var(--hl) solid var(--s-line); border-radius: 0.4cqw; }
.hp-fld i { color: var(--s-sub); }
.hp-fld b { font-weight: 600; }
.hp--realestate .hp-cta { text-align: center; }
.hp-view { padding: 0.9cqw 1.6cqw; border-radius: 0.4cqw; box-shadow: inset 0 0 0 var(--hl) var(--s-ink); font-size: 1.4cqw; font-weight: 600; white-space: nowrap; }
.hp-listings { grid-area: list; grid-template: minmax(0, 1fr) minmax(0, 1fr) / 1.3fr minmax(0, 1fr); gap: 1.4cqw; padding: 2cqw 3cqw 2cqw 0; }
.hp-listings li { position: relative; display: block; min-height: 0; overflow: hidden; border-radius: 0.6cqw; background: var(--s-line); }
.hp-listings li:first-child { grid-row: 1 / span 2; }
.hp-listings .hp-photo, .hp-listings .hp-crop { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.hp-listings .hp-photo { --pos: 70% 60%; }
.hp-listings span { position: absolute; left: 1cqw; right: 1cqw; bottom: 1cqw; display: flex; justify-content: space-between; gap: 1cqw; padding: 0.7cqw 1cqw; border-radius: 0.4cqw; background: rgba(255, 255, 255, 0.95); color: var(--s-ink); font-size: 1.25cqw; white-space: nowrap; }
.hp-listings span b { font-weight: 700; }

