/* =========================================================================
   Heirloom Fibers — yarn boutique layer
   Brands, yarn lines, needles, kits, visit page and the community feed.
   Loads after heirloom.css and uses its --hf-* palette.
   ========================================================================= */

/* The stacked logo (mark over wordmark) needs more height than the old one to stay legible */
.site-logo img, .sticky-logo img { max-height: 88px; }
.ltn__utilize-menu-head .site-logo img { max-height: 76px; }

/* Announcement strip above the header */
.hf-topbar { background: var(--hf-coral); color: #fff; text-align: center; font-size: .86rem; font-weight: 600; letter-spacing: .03em; padding: 8px 14px; }
.hf-topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hf-topbar a:hover { color: var(--hf-cream); }

/* Home hero with a photo behind the navy */
.hf-hero--photo { position: relative; background-size: cover; background-position: center; padding: 6rem 0 5.5rem; }
.hf-hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(32,54,76,.95) 0%, rgba(32,54,76,.84) 48%, rgba(32,54,76,.42) 100%); }
.hf-hero--photo .container { position: relative; }
.hf-hero-brands { margin-top: 26px; color: rgba(255,255,255,.8); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.hf-hero-brands span { display: inline-block; margin: 0 14px 4px 0; white-space: nowrap; }
.hf-hero-card { background: #fff; border-radius: 16px; padding: 26px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.28); max-width: 380px; margin-left: auto; text-align: center; }
.hf-hero-card img { max-width: 250px; width: 100%; }
.hf-hero-card p { color: var(--hf-navy); font-weight: 600; margin: 12px 0 0; font-size: .95rem; }
.hf-hero-card small { color: var(--hf-stone); display: block; margin-top: 2px; }

.hf-section { padding: 70px 0; }
.hf-section--tight { padding: 50px 0; }
.hf-lead { font-size: 1.08rem; max-width: 720px; margin: 0 auto 10px; color: var(--ltn__paragraph-color); }

/* Brand tiles */
.hf-brand-tile { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e8ddd0; border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.hf-brand-tile:hover { transform: translateY(-6px); box-shadow: 0 18px 46px rgba(32,54,76,.14); }
.hf-brand-tile__img { width: 100%; height: 220px; object-fit: cover; object-position: center 25%; display: block; background: var(--hf-cream); }
.hf-brand-tile__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.hf-brand-tile__name { font-size: 1.3rem; font-weight: 700; color: var(--hf-navy); margin: 0 0 4px; }
.hf-brand-tile__meta { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hf-coral); font-weight: 700; margin-bottom: .6rem; }
.hf-brand-tile__text { color: var(--hf-stone); font-size: .92rem; line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.hf-brand-tile__more { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hf-coral); }
.hf-brand-tile__more::after { content: " \2192"; }

/* Yarn / needle / kit line cards */
.hf-line { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e8ddd0; border-radius: 14px; overflow: hidden; }
.hf-line__imgwrap { background: #fff; aspect-ratio: 1 / 1; overflow: hidden; display: block; border-bottom: 1px solid #f2e8de; }
.hf-line__img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .45s ease; }
.hf-line:hover .hf-line__img { transform: scale(1.04); }
.hf-line__body { padding: 1.3rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.hf-line__brand { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--hf-coral); margin-bottom: .3rem; }
.hf-line__brand a { color: inherit; }
.hf-line__name { font-size: 1.2rem; font-weight: 700; color: var(--hf-navy); margin: 0 0 .5rem; line-height: 1.3; }
.hf-line__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .75rem; }
.hf-pill { display: inline-block; background: var(--hf-cream); color: var(--hf-navy); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.hf-pill--sage { background: var(--hf-sage); }
.hf-line__desc { color: var(--ltn__paragraph-color); font-size: .93rem; line-height: 1.65; margin-bottom: .9rem; }
.hf-specs { margin: 0 0 1rem; padding: 0; font-size: .86rem; border-top: 1px solid #f2e8de; }
.hf-specs div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f2e8de; }
.hf-specs dt { flex: 0 0 86px; font-weight: 700; color: var(--hf-navy); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.hf-specs dd { margin: 0; color: var(--ltn__body-color); flex: 1; }
.hf-line__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.hf-line__cta { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hf-coral); }
.hf-line__cta::after { content: " \2192"; }
.hf-line__ext { font-size: .76rem; color: var(--hf-stone); }

/* Filter chips row */
.hf-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 34px; }
.hf-filter button { border: 1px solid #e0d3c2; cursor: pointer; font-size: .85rem; }
.hf-hidden { display: none !important; }

/* Brand page header strip */
.hf-brand-hero { position: relative; background: var(--hf-navy) center / cover no-repeat; padding: 6rem 0 5rem; text-align: center; }
.hf-brand-hero::before { content: ""; position: absolute; inset: 0; background: rgba(32,54,76,.78); }
.hf-brand-hero .container { position: relative; }
.hf-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin: 0; padding: 22px 0; list-style: none; }
.hf-facts li { margin: 0; font-size: .92rem; color: var(--hf-navy); }
.hf-facts strong { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hf-coral); }
.hf-brand-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 2px solid var(--hf-cream); }
.hf-brand-heading h2 { font-size: 1.7rem; margin: 0; }
.hf-brand-heading a { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hf-coral); }

/* Split feature (image + copy) */
.hf-feature-img { width: 100%; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 18px 46px rgba(32,54,76,.16); display: block; }
.hf-checklist { list-style: none; padding: 0; margin: 0 0 22px; }
.hf-checklist li { position: relative; padding-left: 28px; margin: 0 0 9px; }
.hf-checklist li::before { content: "\2714"; position: absolute; left: 0; top: 0; color: var(--hf-coral); font-weight: 700; }

/* WIP Wednesday / event band */
.hf-band { background: var(--hf-navy); color: #fff; border-radius: 16px; padding: 38px 40px; position: relative; }
.hf-band::after { content: ""; position: absolute; inset: 12px; border: 2px dashed rgba(127,196,172,.75); border-radius: 10px; pointer-events: none; }
.hf-band > * { position: relative; z-index: 1; }
.hf-band h2 { color: #fff; font-size: 2.3rem; margin: 6px 0 10px; }
.hf-band h2 span { color: var(--hf-cream); font-size: 1.5rem; white-space: nowrap; }
.hf-band p { color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 18px; }
.hf-band__eyebrow { color: #7fc4ac; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.hf-band .theme-btn-1 { margin-right: 12px; }
.hf-band .hf-band__link { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.hf-band .hf-band__link:hover { color: var(--hf-cream); }

/* Visit page */
.hf-visit-card { background: #fff; border: 1px solid #e8ddd0; border-radius: 14px; padding: 28px 30px; height: 100%; }
.hf-visit-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.hf-visit-card address { font-style: normal; font-size: 1.05rem; color: var(--hf-navy); line-height: 1.6; margin-bottom: 14px; }
.hf-map { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: 14px; display: block; }

/* Community feed */
.hf-feed { column-count: 3; column-gap: 24px; }
.hf-post { break-inside: avoid; background: #fff; border: 1px solid #e8ddd0; border-radius: 14px; overflow: hidden; margin: 0 0 24px; }
.hf-post__media { display: grid; gap: 3px; background: #fff; }
.hf-post__media--multi { grid-template-columns: 1fr 1fr; }
.hf-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-post__media--multi img { aspect-ratio: 1 / 1; }
.hf-post__media--multi a:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.hf-post__media--multi a:first-child:nth-last-child(odd) img { aspect-ratio: 16 / 10; }
.hf-post__body { padding: 1.2rem 1.3rem 1.3rem; }
.hf-post__meta { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--hf-stone); margin-bottom: .5rem; }
.hf-post__title { font-size: 1.1rem; font-weight: 700; color: var(--hf-navy); margin: 0 0 .5rem; line-height: 1.35; }
.hf-post__text { color: var(--ltn__paragraph-color); font-size: .93rem; line-height: 1.7; white-space: pre-line; margin: 0 0 .8rem; }
.hf-post__tags { font-size: .78rem; color: var(--hf-stone); margin: 0 0 .8rem; word-break: break-word; }
.hf-post__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hf-post__links a { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hf-coral); }

/* Footer extras */
.hf-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); margin-right: 8px; color: #fff; }
.hf-footer-social a:hover { background: var(--hf-coral); border-color: var(--hf-coral); color: #fff; }
.ltn__footer-area address { font-style: normal; color: #cfd8e2; line-height: 1.7; margin-bottom: 10px; }

@media (max-width: 1199px) { .hf-feed { column-count: 2; } }
@media (max-width: 991px) { .hf-hero-card { margin: 34px auto 0; } }
@media (max-width: 767px) {
    .hf-feed { column-count: 1; }
    .hf-section { padding: 46px 0; }
    .hf-band { padding: 30px 26px; }
    .hf-band h2 { font-size: 1.8rem; }
    .hf-hero--photo { padding: 3.6rem 0 3.2rem; }
    .hf-brand-hero { padding: 3.5rem 0 3rem; }
}

/* ---------- Header dropdowns (the only place these are styled) ---------- */
.ltn__main-menu > ul > li > ul {
    min-width: 215px;
    padding: 6px !important;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, var(--hf-cream-soft) 100%);
    border: 1px solid #eadfce;
    border-top: 3px solid var(--hf-coral);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 34px rgba(32, 54, 76, .20);
}
.ltn__main-menu > ul > li > ul > li { margin: 0 !important; padding: 0 !important; line-height: 1.25; }
.ltn__main-menu > ul > li > ul > li > a {
    position: relative;
    display: block;
    margin: 0 !important;
    padding: 7px 12px 7px 26px !important;
    border-radius: 8px;
    color: var(--hf-navy) !important;
    font-family: var(--ltn__heading-font);
    font-size: 14px; font-weight: 600; letter-spacing: .01em;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}
/* small yarn-dot marker in front of each entry */
.ltn__main-menu > ul > li > ul > li > a::before {
    content: ""; position: absolute; left: 11px; top: 50%;
    width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
    background: var(--hf-sage);
    transition: background-color .15s ease, transform .15s ease;
}
.ltn__main-menu > ul > li > ul > li > a:hover {
    padding-left: 30px !important;
    background-color: var(--hf-coral) !important;
    color: #fff !important;
}
.ltn__main-menu > ul > li > ul > li > a:hover::before { background: #fff; transform: scale(1.25); }
/* first entry ("All ...") reads as the heading of the list */
.ltn__main-menu > ul > li > ul > li:first-child {
    margin-bottom: 4px !important; padding-bottom: 4px !important;
    border-bottom: 1px solid #eadfce;
}
.ltn__main-menu > ul > li > ul > li:first-child > a {
    color: var(--hf-coral) !important;
    text-transform: uppercase; font-size: 12px; letter-spacing: .08em;
}
.ltn__main-menu > ul > li > ul > li:first-child > a::before { background: var(--hf-coral); }
.ltn__main-menu > ul > li > ul > li:first-child > a:hover { color: #fff !important; }

/* ---------- Home "What's in the Shop" cards: framed, with a coral cap ---------- */
.ltn__category-item { height: calc(100% - 20px); }
.hf-cat-tile {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    height: 100%;
    padding: 36px 20px 28px;
    border: 2px solid #eadfce;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, var(--hf-cream-soft) 100%);
    box-shadow: 0 6px 18px rgba(32, 54, 76, .08);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hf-cat-tile::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
    background: var(--hf-coral);
}
.hf-cat-tile:hover {
    border-color: var(--hf-coral);
    box-shadow: 0 18px 38px rgba(32, 54, 76, .16);
    transform: translateY(-6px);
}
.hf-cat-tile .hf-cat-icon {
    background: var(--hf-coral); color: #fff;
    box-shadow: 0 6px 14px rgba(205, 106, 98, .35);
    transition: transform .2s ease;
}
.hf-cat-tile:hover .hf-cat-icon { transform: scale(1.08); }
.hf-cat-tile h4 { color: var(--hf-navy); font-weight: 700; }
.hf-cat-tile p { flex: 1; }
.hf-cat-tile .hf-chip { background: var(--hf-navy); color: #fff; border-color: var(--hf-navy); }
.hf-cat-tile:hover .hf-chip { background: var(--hf-coral); border-color: var(--hf-coral); }

/* ---------- Shared card finish: soft shadow at rest, lift and coral edge on hover ---------- */
.hf-brand-tile, .hf-line, .hf-post, .hf-visit-card, .hf-news-card, .ltn__product-item-4 {
    border: 1px solid #e4d6c3;
    box-shadow: 0 5px 16px rgba(32, 54, 76, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hf-brand-tile:hover, .hf-line:hover, .hf-post:hover, .hf-news-card:hover, .ltn__product-item-4:hover {
    border-color: var(--hf-coral);
    box-shadow: 0 18px 40px rgba(32, 54, 76, .15);
    transform: translateY(-5px);
}
/* brand tiles are the main way into the yarn pages: give them the coral cap too */
.hf-brand-tile { position: relative; border-width: 2px; }
.hf-brand-tile::before, .hf-visit-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 1;
    background: var(--hf-coral);
}
.hf-brand-tile__more { color: var(--hf-coral); font-weight: 700; }
.hf-brand-tile:hover .hf-brand-tile__more { text-decoration: underline; }
.hf-visit-card { position: relative; overflow: hidden; border-width: 2px; }
/* isolation: the template puts the photo link at z-index -1; without a stacking context here it
   would paint behind this card's white background (and only show on hover, when the lift creates one) */
.ltn__product-item-4 { background: #fff; border-radius: 14px; overflow: hidden; isolation: isolate; }
/* Facebook posts sit in CSS columns, where a lifted card can be clipped: change edge and shadow only */
.hf-post:hover { transform: none; }
/* handmade product cards now have an edge, so keep the text off it */
.ltn__product-item-4 .product-info { padding: 16px 16px 18px; }

/* Product cards: every card in a row is as tall as the tallest one, whatever the title length */
[class*="col-"]:has(> .ltn__product-item-4) { display: flex; }
[class*="col-"] > .ltn__product-item-4 { flex: 1 1 auto; width: 100%; display: flex; flex-direction: column; }
.ltn__product-item-4 .product-info { flex: 1 1 auto; }
