/* Scoped to the homepage: the catalogue and staff pages keep their layout. */
.homepage { --home-ink: var(--color-text); --home-paper: var(--color-surface); --home-line: var(--color-border); --home-accent: var(--color-primary-dark); }
.homepage .storefront-hero { margin-bottom: 0; }
.homepage-maker { font-size: .75rem; font-weight: 600; letter-spacing: .06em; line-height: 1.6; text-transform: uppercase; color: var(--home-accent); }
.homepage-products { padding-block: clamp(2.5rem, 4vw, 4rem); }
.homepage-text-link { color: var(--home-accent); text-underline-offset: .25rem; font-size: .9rem; line-height: 1.5; }
.homepage-text-link span { margin-left: .6rem; }
.homepage-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.homepage-group { min-width: 0; background: var(--home-paper); border: 1px solid var(--home-line); border-radius: var(--radius-md); overflow: hidden; scroll-margin-top: 6rem; }
/* Plain cards, one border all round, and the line above each title in one colour (owner, 2026-12-02):
   a coloured strip per group read as template decoration, and its three colours meant nothing. */
.homepage-group-heading { position: relative; padding: 1.5rem 1.4rem 1.1rem; }
.homepage-group .homepage-maker { margin: 0 0 .5rem; font-size: .65rem; }
.homepage .homepage-group-heading h2 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.4; margin-bottom: .65rem; }
.homepage-group-description { color: var(--color-muted); font-size: .85rem; line-height: 1.65; margin: 0; }
.homepage-category { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0,1fr); gap: 1rem; padding: 1rem; border-top: 1px solid var(--home-line); }
.homepage-category-visual { height: 6rem; min-width: 0; overflow: hidden; background: var(--color-bg-body); }
.homepage-category-visual :is(.carousel, .carousel-inner, .carousel-item, .gallery-placeholder), .homepage-category-visual img { height: 100%; width: 100%; border-radius: 0; }
.homepage-category-visual img { display: block; object-fit: cover; }
.homepage-category-copy { min-width: 0; align-self: center; }
.homepage .homepage-category-copy h3 { font-size: 1rem; line-height: 1.5; margin: 0; font-weight: 600; }
.homepage-category-copy p { font-size: .8rem; line-height: 1.6; color: var(--color-muted); margin: .4rem 0 0; overflow-wrap: anywhere; }
.homepage-category .catalog-card-link { gap: .5rem; }
.homepage-category .catalog-card-link > span { color: var(--home-accent); }
.homepage-category .catalog-card-link::after { border-radius: 0; }
.homepage-category .catalog-card-link:focus-visible::after { outline-offset: -3px; }
.homepage-category:hover { background: var(--color-primary-light); }
.homepage-category-lead { display: block; padding: 0; border-top: 0; }
.homepage-category-lead .homepage-category-visual { height: auto; aspect-ratio: 16 / 10; }
/* Flatter on a wide screen (2026-11-12): the three groups now share the whole
   width, and at 16:10 each first photo grew taller than the screen allows. */
@media (min-width: 1920px) { .homepage-category-lead .homepage-category-visual { aspect-ratio: 2 / 1; } }
@media (min-width: 2400px) { .homepage-category-lead .homepage-category-visual { aspect-ratio: 5 / 2; } }
.homepage-category-lead .homepage-category-copy { padding: 1rem 1.4rem 1.25rem; }
.homepage-category .gallery-placeholder { padding: .5rem; gap: .3rem; }
.homepage-category:not(.homepage-category-lead) .gallery-placeholder > span { display: none; }
/* The photo's arrows (owner, 2026-10-23: the square black ones looked ugly): small
   round translucent buttons on the large first photo, shown on hover or focus and
   always on a touch screen; none on a small thumbnail, where the dashes, a swipe
   and the row's own link are enough. */
.homepage-category :is(.carousel-control-prev, .carousel-control-next) { z-index: 2; width: 40px; opacity: 0; transition: opacity .15s ease; }
.homepage-category:is(:hover, :focus-within) :is(.carousel-control-prev, .carousel-control-next) { opacity: 1; }
@media (hover: none) { .homepage-category :is(.carousel-control-prev, .carousel-control-next) { opacity: 1; } }
.homepage-category :is(.carousel-control-prev-icon, .carousel-control-next-icon) { width: 28px; height: 28px; border-radius: 50%; background-color: rgba(41, 44, 44, .55); background-size: 50%; }
.homepage-category:not(.homepage-category-lead) :is(.carousel-control-prev, .carousel-control-next) { display: none; }
.homepage-category .carousel-indicators { z-index: 2; margin-bottom: 0; }
.homepage-category .carousel-indicators button { width: 18px; min-height: 0; height: 3px; border-block-width: 11px; border-inline: 4px solid transparent; margin-inline: -1px; }
.homepage-category:not(.homepage-category-lead) .carousel-indicators { display: none; }
.homepage-group-enquiry { padding: 2rem 1.4rem; border-top: 1px solid var(--home-line); }
.homepage-group-enquiry > .bi { font-size: 2.75rem; color: var(--color-muted); }
.homepage-group-enquiry p { font-size: .9rem; line-height: 1.7; margin-block: 1rem; }
.homepage .home-about { margin-top: 0; }
@media (max-width: 991.98px) {
    .homepage-groups { grid-template-columns: 1fr; }
    .homepage-group-heading { max-width: 44rem; }
    .homepage-category-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .homepage-category { display: block; border: 0; padding: 0; }
    .homepage-category .homepage-category-visual { height: auto; aspect-ratio: 16 / 10; }
    .homepage-category .homepage-category-copy { padding: 1rem 1.4rem 1.25rem; }
}
@media (max-width: 575.98px) {
    .homepage-category-list { grid-template-columns: 1fr; }
    .homepage-category + .homepage-category { border-top: 1px solid var(--home-line); }
    .homepage-category:not(.homepage-category-lead) { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); padding: 1rem; }
    .homepage-category:not(.homepage-category-lead) .homepage-category-visual { height: 5.5rem; aspect-ratio: auto; }
    .homepage-category:not(.homepage-category-lead) .homepage-category-copy { padding: 0; }
}
/* How it works (owner, 2026-12-02): four steps under the hero -- a drawing, its number and one line each.
   Four across on a wide screen with an arrow in each gap, two by two on a tablet, and on a phone one
   compact row per step (drawing left, words right) so the four fit in about one screen. */
.home-steps { padding-top: clamp(2rem, 3.5vw, 3.5rem); }
.home-steps-heading { text-align: center; margin-bottom: clamp(1.25rem, 2vw, 2rem); }
.homepage .home-steps-heading h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); margin: 0; }
.home-steps-list { --steps-gap: clamp(1.5rem, 2.4vw, 2.5rem); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--steps-gap); }
.home-step { position: relative; min-width: 0; background: var(--home-paper); border: 1px solid var(--home-line); border-radius: var(--radius-md); }
.home-step-picture { background: var(--color-primary-light); border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0; padding: .75rem 1rem; }
.home-step-art { display: block; width: 100%; height: auto; max-height: 9.5rem; }
.home-step-copy { position: relative; padding: 1.75rem 1.4rem 1.4rem; }
.home-step-number { position: absolute; top: 0; left: 1.4rem; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: var(--color-text); font-weight: 700; font-size: 1.1rem; line-height: 1; border: 3px solid var(--home-paper); }
.homepage .home-step-copy h3 { font-size: 1.05rem; line-height: 1.4; font-weight: 600; margin: 0 0 .4rem; }
.home-step-copy p { font-size: .875rem; line-height: 1.6; color: var(--color-muted); margin: 0; }
/* The arrow between two cards sits in the middle of the gap. */
.home-step + .home-step::before { content: ""; position: absolute; top: 50%; left: calc(var(--steps-gap) / -2); width: .7rem; height: .7rem; border-top: 2px solid var(--home-accent); border-right: 2px solid var(--home-accent); transform: translate(-70%, -50%) rotate(45deg); }
.home-steps-action { text-align: center; margin: clamp(1.25rem, 2vw, 2rem) 0 0; }
/* The drawings: the site's own colours, so they change with the palette. */
.home-step-art .art-swatch { stroke: rgba(39, 39, 42, .14); stroke-width: 1; }
.home-step-art .art-wood { fill: #c79a67; }
.home-step-art .art-stone { fill: #ecebe6; }
.home-step-art .art-dark { fill: #3a3d3c; }
.home-step-art .art-sand { fill: #e6d3b3; }
.home-step-art .art-white { fill: #fff; }
.home-step-art .art-green { fill: #7d9484; }
.home-step-art .art-vein { fill: none; stroke: #9a9a94; stroke-width: 1.5; stroke-linecap: round; }
.home-step-art .art-grain { fill: none; stroke: #a87a48; stroke-width: 1.5; stroke-linecap: round; }
.home-step-art .art-picked { fill: none; stroke: var(--color-primary-dark); stroke-width: 2.5; }
.home-step-art .art-badge { fill: var(--color-primary-dark); }
.home-step-art .art-badge-ok { fill: var(--color-ok); }
.home-step-art .art-tick { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.home-step-art .art-tick-ok { stroke: var(--color-ok); stroke-width: 3; }
.home-step-art .art-top { fill: #fff; stroke: var(--color-text); stroke-width: 2; stroke-linejoin: round; }
.home-step-art .art-edge { fill: none; stroke: var(--color-primary); stroke-width: 4; }
.home-step-art .art-cut { fill: var(--color-primary-light); stroke: var(--color-primary-dark); stroke-width: 1.5; stroke-dasharray: 4 3; }
.home-step-art .art-dim { fill: none; stroke: var(--color-muted); stroke-width: 1; }
.home-step-art .art-num { fill: var(--color-muted); font-size: 9px; font-weight: 600; }
.home-step-art .art-card { fill: #fff; stroke: var(--home-line); stroke-width: 1.5; }
.home-step-art .art-line { fill: none; stroke: #cfcdc6; stroke-width: 4; stroke-linecap: round; }
.home-step-art .art-total { fill: var(--color-primary); }
.home-step-art .art-money { fill: var(--color-text); font-size: 16px; font-weight: 700; }
.home-step-art .art-cal-top { fill: var(--color-primary-dark); }
.home-step-art .art-cal-pin { fill: none; stroke: var(--color-text); stroke-width: 3; stroke-linecap: round; }
.home-step-art .art-slab-side { fill: #fff; stroke: var(--color-text); stroke-width: 1.5; stroke-linejoin: round; }
.home-step-art .art-slab-front { fill: var(--color-primary); stroke: var(--color-text); stroke-width: 1.5; stroke-linejoin: round; }
.home-step-art .art-slab-end { fill: #c98a3c; stroke: var(--color-text); stroke-width: 1.5; stroke-linejoin: round; }
.home-step-art .art-slab-cut { fill: var(--color-primary-light); stroke: var(--color-primary-dark); stroke-width: 1.5; stroke-dasharray: 4 3; }
.home-step-art .art-track { fill: none; stroke: #d9d2c4; stroke-width: 4; stroke-linecap: round; }
.home-step-art .art-track-done { stroke: var(--color-primary-dark); }
.home-step-art .art-dot { fill: var(--color-primary-dark); }
.home-step-art .art-dot-next { fill: #fff; stroke: var(--color-primary-dark); stroke-width: 3; }
.home-step-art .art-tick-small { stroke-width: 2; }
/* Why choose us (owner, 2026-12-02): up to ten cards, each an icon, a figure and its words, or words alone.
   Up to four share one row; five or six stand three by three; seven or eight stand four to a row and nine or
   ten five to a row, and a short last row is stretched to the full width rather than left with a hole. They
   wrap as the screen narrows. */
.home-facts { padding-top: clamp(2rem, 3.5vw, 3.5rem); }
.home-facts-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: clamp(1rem, 1.6vw, 1.5rem); }
.homepage .home-facts-heading h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); margin: 0; }
.home-facts-heading a { font-weight: 600; color: var(--color-text); text-underline-offset: .2em; }
.home-facts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); }
.home-facts-list-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-facts-list-wide { --home-facts-gap: clamp(.75rem, 1.6vw, 1.5rem); display: flex; flex-wrap: wrap; gap: var(--home-facts-gap); }
.home-facts-list-wide > li { flex: 1 1 calc(25% - var(--home-facts-gap)); }
/* Five to a row needs the width: under 1400px nine or ten cards stand four to a row like seven or eight. */
@media (min-width: 1400px) {
    .home-facts-list-five > li { flex-basis: calc(20% - var(--home-facts-gap)); }
    .home-facts-list-five .home-fact { padding-inline: 1rem; gap: .75rem; }
    .home-facts-list-five .home-fact-copy { overflow-wrap: anywhere; }
    .home-facts-list-five .home-fact-words { font-size: 1.1rem; }
}
.home-facts-list > li { display: grid; min-width: 0; }
.home-fact { display: flex; align-items: center; gap: 1.1rem; min-width: 0; padding: 1.25rem 1.4rem; background: var(--home-paper); border: 1px solid var(--home-line); border-radius: var(--radius-md); color: var(--color-text); text-decoration: none; }
a.home-fact:hover, a.home-fact:focus-visible { border-color: var(--color-primary-dark); color: var(--color-text); }
.home-fact-words { font-size: 1.1rem; }
.home-fact-icon { flex: none; font-size: 2rem; line-height: 1; color: var(--color-primary-dark); }
/* The Georgian flag as a card's picture: a thin ring, or its white field is lost on the white card. */
.home-fact-flag { width: 2.7rem; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(39, 39, 42, .18); }
.home-fact-copy { margin: 0; min-width: 0; }
/* Most ordered colours (owner, 2026-12-02): up to eight square tiles in one row, four to a row on a narrower screen. */
.home-popular { padding-top: clamp(2rem, 3.5vw, 3.5rem); }
.home-popular-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1.1rem); }
.home-popular-tile { display: block; min-width: 0; color: var(--color-text); text-decoration: none; }
.home-popular-picture { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--home-paper); border: 1px solid var(--home-line); border-radius: var(--radius-md); }
span.home-popular-picture { display: grid; place-items: center; font-size: 1.5rem; color: var(--color-muted); }
a.home-popular-tile:hover .home-popular-picture, a.home-popular-tile:focus-visible .home-popular-picture { border-color: var(--color-primary-dark); }
.home-popular-name { display: block; margin-top: .5rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.home-popular-line { display: block; font-size: .8rem; line-height: 1.35; color: var(--color-muted); }
@media (max-width: 575.98px) {
    .home-popular-line { display: none; }
    .home-popular-name { margin-top: .3rem; font-size: .9rem; }
}
.home-fact-figure { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.home-fact-label { display: block; font-size: .9rem; line-height: 1.4; color: var(--color-muted); }
.home-fact-words + .home-fact-note { margin-top: .1rem; }
@media (max-width: 1199.98px) {
    .home-facts-list-wide > li { flex-basis: calc(50% - var(--home-facts-gap)); }
    .home-popular-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .home-facts-list-many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-step + .home-step::before { display: none; }
}
@media (max-width: 575.98px) {
    .home-facts-list-many { grid-template-columns: 1fr; }
    .home-facts-list-wide > li { flex-basis: 100%; }
    .home-steps-list { grid-template-columns: 1fr; gap: .75rem; }
    .home-step { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch; }
    .home-step-picture { display: grid; place-items: center; padding: .35rem;border-radius: calc(var(--radius-md) - 1px) 0 0 calc(var(--radius-md) - 1px); }
    .home-step-copy { padding: .9rem 1rem; align-self: center; }
    .home-step-number { position: static; float: left; transform: none; width: 1.6rem; height: 1.6rem; margin-right: .55rem; border: 0; font-size: .85rem; }
    .homepage .home-step-copy h3 { font-size: 1rem; line-height: 1.6rem; margin-bottom: .25rem; }
    .home-step-copy p { clear: left; font-size: .8rem; line-height: 1.5; }
}
