/* ==========================================================================
   TBP shared section styles (hp-*)
   --------------------------------------------------------------------------
   Used by the reusable section components in resources/views/components/home/.
   These components are not homepage-only — they are rendered on the homepage
   and can be dropped into any page, so this file is linked globally from
   resources/views/components/head.blade.php rather than pushed per page.

   Design tokens live on :root so a component works standalone; .hp-scope
   applies the base text colour and can safely nest inside itself.
   ========================================================================== */

:root {
    /* Brand palette, sampled from public/tbp-logo.webp. */
    --hp-purple: #7202ff;
    --hp-purple-dark: #5a01cc;
    --hp-purple-soft: #f3ecff;
    --hp-green: #01b67b;
    --hp-green-dark: #019965;
    --hp-mint: #d9f6ea;
    --hp-mint-soft: #ecfbf4;

    /* Semantic roles: green drives actions, purple is the brand accent. */
    --hp-primary: var(--hp-green);
    --hp-primary-dark: var(--hp-green-dark);
    --hp-accent: var(--hp-purple);
    --hp-accent-soft: var(--hp-purple-soft);

    /* Kept so any markup still referencing the old blue tokens keeps working. */
    --hp-blue: var(--hp-accent);
    --hp-blue-dark: var(--hp-purple-dark);
    --hp-blue-soft: var(--hp-accent-soft);
    --hp-gray: #f6f6f8;
    --hp-border: #e9e9ef;
    --hp-text: #1d1f27;
    --hp-muted: #6b7280;
    --hp-radius: 16px;
    --hp-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.hp-scope { color: var(--hp-text); }

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--hp-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .7rem 1.8rem;
    font-weight: 600;
    font-size: .9rem;
    transition: all .3s;
}
.hp-btn:hover { background: var(--hp-primary-dark); color: #fff; }
/* The theme paints every bare <span> with the muted paragraph colour. */
.hp-btn span,
.hp-btn-outline span { color: inherit; font-size: inherit; }

.hp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--hp-accent);
    border: 1.5px solid var(--hp-accent);
    border-radius: 999px;
    padding: .65rem 1.75rem;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all .3s;
}
.hp-btn-outline:hover { background: var(--hp-accent); color: #fff; }

.hp-eyebrow {
    color: var(--hp-green);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hp-title { font-weight: 600; font-size: 1.9rem; }
.hp-lead { color: var(--hp-muted); max-width: 720px; margin-inline: auto; }
.hp-bg-gray { background: var(--hp-gray); }

/* Section heading block used by most components */
.hp-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
/* Left-aligned variant for pages where the section is not centred. */
.hp-head--start { max-width: none; margin-left: 0; margin-right: 0; text-align: left; }
.hp-head .hp-title { margin: .35rem 0 .75rem; }
.hp-head p { color: var(--hp-muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hp-hero { background: var(--hp-mint); }
.hp-hero h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.15; }
/* The banner body is admin-authored, so every heading level has to look
   deliberate — whichever one they pick in the rich editor. */
.hp-hero-content h1,
.hp-hero-content h2 { font-size: 2.6rem; font-weight: 700; line-height: 1.15; margin-bottom: .75rem; }
.hp-hero-content h3 { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: .75rem; }
.hp-hero-content h4,
.hp-hero-content h5,
.hp-hero-content h6 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: .75rem; }
.hp-hero-content p { color: var(--hp-muted); font-size: 1rem; margin-bottom: .5rem; }
.hp-hero-content p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Brand strip
   Logos ship at wildly different intrinsic sizes and aspect ratios, so each
   one gets an identical fixed-height box and is contained inside it. That is
   what keeps the row optically even instead of letting tall/wide logos
   dominate.
   -------------------------------------------------------------------------- */

.hp-brands { border-top: 1px solid var(--hp-border); border-bottom: 1px solid var(--hp-border); }
.hp-brands-label {
    text-align: center;
    color: var(--hp-muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.hp-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    gap: 1rem 2rem;
}
.hp-brand-item {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .5rem;
}
.hp-scope .hp-brand-item img,
.hp-brand-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto !important;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .55;
    transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.hp-brand-item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

@media (max-width: 991.98px) { .hp-brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) {
    .hp-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .hp-brand-item { height: 44px; }
}

/* --------------------------------------------------------------------------
   Explore categories
   -------------------------------------------------------------------------- */

.hp-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
}
.hp-cat-tab {
    border: 1.5px solid var(--hp-border);
    background: #fff;
    color: var(--hp-muted);
    border-radius: 999px;
    padding: .55rem 1.4rem;
    font-size: .875rem;
    font-weight: 600;
    transition: all .25s ease;
}
.hp-cat-tab:hover:not(:disabled) { border-color: var(--hp-accent); color: var(--hp-accent); }
.hp-cat-tab.active { background: var(--hp-accent); border-color: var(--hp-accent); color: #fff; }
.hp-cat-tab:disabled { opacity: .6; cursor: wait; }

.hp-cat-card { height: 100%; }
.hp-cat-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hp-cat-card a:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); border-color: transparent; }
.hp-cat-media {
    position: relative;
    background: var(--hp-gray);
    overflow: hidden;
}
.hp-scope .hp-cat-card img,
.hp-cat-card img {
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 100%;
    mix-blend-mode: multiply;
    transition: transform .55s ease;
}
.hp-cat-card a:hover img { transform: scale(1.07); }
.hp-cat-body {
    padding: .9rem 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-grow: 1;
}
.hp-cat-body p { margin: 0; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.hp-cat-body i { color: var(--hp-accent); opacity: 0; transform: translateX(-6px); transition: all .3s ease; }
.hp-cat-card a:hover .hp-cat-body i { opacity: 1; transform: none; }
.hp-cat-card a:hover .hp-cat-body p { color: var(--hp-accent); }

.hp-empty {
    border: 1px dashed var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 3rem 1rem;
    text-align: center;
    color: var(--hp-muted);
}
.hp-empty i { font-size: 2rem; color: var(--hp-border); display: block; margin-bottom: .75rem; }

/* --------------------------------------------------------------------------
   Listing toolbar (result count + sort), used by the All Products page
   -------------------------------------------------------------------------- */

.hp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--hp-border);
}
.hp-toolbar-count { margin: 0; font-size: .875rem; color: var(--hp-muted); }
.hp-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.hp-toolbar-clear {
    border: none;
    background: transparent;
    color: var(--hp-muted);
    font-size: .82rem;
    font-weight: 600;
    padding: .35rem .5rem;
    transition: color .2s ease;
}
.hp-toolbar-clear:hover { color: var(--hp-accent); }

.hp-select-label { font-size: .82rem; color: var(--hp-muted); margin: 0; }
.hp-select {
    border: 1.5px solid var(--hp-border);
    border-radius: 999px;
    background: #fff;
    color: var(--hp-text);
    font-size: .85rem;
    font-weight: 600;
    padding: .45rem 2.2rem .45rem 1.1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 12px;
}
.hp-select:focus { outline: none; border-color: var(--hp-accent); }

/* Category sidebar facets */
.hp-facet-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1.5px solid var(--hp-border);
    background: #fff;
    border-radius: 999px;
    padding: .7rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--hp-text);
    margin-bottom: 1rem;
}
.hp-facet-toggle[aria-expanded="true"] i:last-child { transform: rotate(180deg); }
.hp-facet-toggle i:last-child { transition: transform .25s ease; }

.hp-facet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.hp-facet-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .75rem;
    border-radius: 10px;
    color: var(--hp-muted);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
}
.hp-facet-list a:hover { background: var(--hp-gray); color: var(--hp-text); }
.hp-facet-list a.active { background: var(--hp-accent-soft); color: var(--hp-accent); font-weight: 700; }
.hp-facet-count {
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 700;
    color: var(--hp-muted);
    background: var(--hp-gray);
    border-radius: 999px;
    padding: .1rem .5rem;
}
.hp-facet-list a.active .hp-facet-count { background: #fff; color: var(--hp-accent); }

.hp-loadmore { text-align: center; margin-top: 3rem; }
.hp-loadmore .hp-btn-outline { min-width: 190px; justify-content: center; }
.hp-loadmore-hint { margin: .75rem 0 0; font-size: .8rem; color: var(--hp-muted); }

@media (max-width: 575.98px) {
    .hp-toolbar { justify-content: flex-start; }
    .hp-toolbar-actions { width: 100%; justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Feature / info cards
   -------------------------------------------------------------------------- */

.hp-feature-card {
    background: var(--hp-gray);
    border-radius: var(--hp-radius);
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
}
.hp-scope .hp-feature-card img,
.hp-feature-card img { width: 64px !important; height: 64px !important; object-fit: contain; margin-bottom: 1rem; }

.hp-check-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 1rem; }
.hp-check-list span { display: flex; align-items: flex-start; gap: .4rem; font-size: .875rem; }
.hp-check-list i { color: var(--hp-primary); margin-top: .2rem; }
@media (max-width: 575.98px) { .hp-check-list { grid-template-columns: repeat(2, 1fr); } }

.hp-spec-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.hp-spec-list li {
    border-bottom: 1px solid var(--hp-border);
    padding: .75rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.hp-spec-list li i { color: var(--hp-primary); }

/* --------------------------------------------------------------------------
   Imagery
   -------------------------------------------------------------------------- */

.hp-scope .hp-img-rounded,
.hp-img-rounded { border-radius: var(--hp-radius); object-fit: cover; width: 100%; }
.hp-scope .hp-img-tall,
.hp-img-tall { height: 440px !important; }

.hp-zoom { display: block; overflow: hidden; border-radius: 14px; }
.hp-scope .hp-zoom img,
.hp-zoom img { transition: transform .55s ease; display: block; }
.hp-zoom:hover img { transform: scale(1.08); }

/* --------------------------------------------------------------------------
   Customize your packaging
   -------------------------------------------------------------------------- */

.hp-customize { background: var(--hp-gray); border-radius: 18px; padding: 2rem; }
.hp-customize .nav-link { color: var(--hp-muted); font-size: .85rem; border: none; border-bottom: 2px solid transparent; }
.hp-customize .nav-link.active { color: var(--hp-text); background: transparent; border-bottom: 2px solid var(--hp-accent); }
.hp-scope .hp-cz-img,
.hp-cz-img { border-radius: 14px; width: 100%; height: 150px; object-fit: cover; }
.hp-scope .hp-carousel-img,
.hp-carousel-img { border-radius: 14px; width: 100%; height: 150px; object-fit: cover; }

.hp-circle-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    border: none;
    background: var(--hp-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.hp-testi {
    background: var(--hp-green);
    color: #fff;
    border-radius: var(--hp-radius);
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    margin-top: 40px;
    height: 100%;
}
.hp-scope .hp-testi .hp-avatar,
.hp-testi .hp-avatar {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}
.hp-testi .hp-stars { color: #ffd24d; }

/* --------------------------------------------------------------------------
   Products / CTA / blog
   -------------------------------------------------------------------------- */

.hp-prod-card { height: 100%; margin-bottom: 1.5rem; }
.hp-prod-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hp-prod-link:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); border-color: transparent; color: inherit; }
.hp-prod-media { display: block; background: var(--hp-gray); overflow: hidden; }
/* Product shots are photographs, so fill the tile rather than letterboxing. */
.hp-scope .hp-prod-card img,
.hp-prod-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform .55s ease;
}
.hp-prod-link:hover img { transform: scale(1.06); }
.hp-prod-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.2rem; flex-grow: 1; }
.hp-prod-title { font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--hp-text); }
.hp-prod-link:hover .hp-prod-title { color: var(--hp-accent); }
.hp-prod-rating { color: #ffb800; font-size: .75rem; display: inline-flex; gap: 2px; }
.hp-prod-action {
    margin-top: auto;
    color: var(--hp-primary);
    font-weight: 600;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.hp-prod-action i { transition: transform .25s ease; }
.hp-prod-link:hover .hp-prod-action i { transform: translateX(4px); }

.hp-cta { background: var(--hp-mint); border-radius: 18px; }

.hp-blog-card { border-radius: var(--hp-radius); overflow: hidden; background: #fff; height: 100%; border: 1px solid var(--hp-border); }
.hp-scope .hp-blog-card img,
.hp-blog-card img { width: 100%; height: 200px; object-fit: cover; }
.hp-blog-card .hp-blog-body { padding: 1.2rem; }
.hp-blog-card a.hp-blog-title { color: var(--hp-text); font-weight: 600; text-decoration: none; display: block; }
.hp-blog-card a.hp-blog-title:hover { color: var(--hp-accent); }

/* --------------------------------------------------------------------------
   Long forms (quote request) — one card, steps separated by rules
   -------------------------------------------------------------------------- */

.hp-form-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 2.25rem;
    box-shadow: rgba(149, 157, 165, .12) 0 8px 24px;
}
.hp-form-card .single_input { margin-top: 22px; transition: border-color .2s ease; }
.hp-form-card .single_input input,
.hp-form-card .single_input select,
.hp-form-card .single_input textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 15px 20px;
    border-radius: 6px;
    color: var(--hp-text);
}
.hp-form-card .single_input select { appearance: none; cursor: pointer; }
.hp-form-card .single_input input:focus,
.hp-form-card .single_input select:focus,
.hp-form-card .single_input textarea:focus { outline: none; box-shadow: none; }
.hp-form-card .single_input:focus-within { border-color: var(--hp-primary); }
.hp-form-card .single_input.is-invalid { border-color: #dc3545; }

.hp-step { display: flex; align-items: center; gap: .75rem; margin: 2.5rem 0 .25rem; }
.hp-step:first-child { margin-top: 0; }
.hp-step + .row { margin-top: 0; }
.hp-step-num {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--hp-accent-soft);
    color: var(--hp-accent);
    font-weight: 700;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hp-step-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.hp-step::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--hp-border); }

/* Add-on checkboxes rendered as selectable chips. */
.hp-chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.hp-chip-input { position: absolute; opacity: 0; pointer-events: none; }
.hp-chip {
    border: 1.5px solid var(--hp-border);
    border-radius: 999px;
    padding: .45rem 1.1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--hp-muted);
    cursor: pointer;
    transition: all .2s ease;
    margin: 0;
}
.hp-chip:hover { border-color: var(--hp-accent); color: var(--hp-accent); }
.hp-chip-input:checked + .hp-chip { background: var(--hp-accent); border-color: var(--hp-accent); color: #fff; }
.hp-chip-input:focus-visible + .hp-chip { box-shadow: 0 0 0 .2rem rgba(114, 2, 255, .2); }

.hp-upload { margin-top: 1.5rem; }
.hp-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1.5px dashed var(--hp-border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.hp-upload-label:hover { border-color: var(--hp-accent); background: var(--hp-accent-soft); }
.hp-upload-label i { font-size: 1.5rem; color: var(--hp-accent); }
.hp-upload-label strong { display: block; font-size: .9rem; color: var(--hp-text); }
.hp-upload-label span { font-size: .8rem; color: var(--hp-muted); line-height: 1.6; }
/* The dropzone label is the click target; the native control stays hidden. */
.hp-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.hp-alert {
    background: #fdecee;
    border: 1px solid #f5c2c7;
    color: #842029;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: .875rem;
}

.hp-aside {
    background: var(--hp-mint-soft);
    border-radius: var(--hp-radius);
    padding: 1.75rem;
}
@media (min-width: 992px) { .hp-aside { position: sticky; top: 96px; } }
.hp-aside-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.hp-timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.hp-timeline li {
    position: relative;
    padding-left: 2.25rem;
    padding-bottom: 1.25rem;
    font-size: .85rem;
    color: var(--hp-muted);
    line-height: 1.6;
}
.hp-timeline li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--hp-green);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hp-timeline li::after { content: ''; position: absolute; left: 12px; top: 30px; bottom: 4px; width: 1px; background: #cfe8dc; }
.hp-timeline li:last-child { padding-bottom: 0; }
.hp-timeline li:last-child::after { display: none; }
.hp-timeline strong { display: block; color: var(--hp-text); font-size: .9rem; margin-bottom: .15rem; }

@media (max-width: 575.98px) {
    .hp-form-card { padding: 1.5rem 1.15rem; }
}

/* --------------------------------------------------------------------------
   Blog detail — article, author card and sidebar
   -------------------------------------------------------------------------- */

.hp-article-head { background: var(--hp-mint-soft); }
.hp-crumbs { font-size: .8rem; color: var(--hp-muted); display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.hp-crumbs a { color: var(--hp-muted); text-decoration: none; }
.hp-crumbs a:hover { color: var(--hp-accent); }
.hp-crumbs .current { color: var(--hp-text); font-weight: 600; }

.hp-article-title { font-size: 2.4rem; font-weight: 700; line-height: 1.2; margin: 0 0 1.25rem; }
.hp-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    color: var(--hp-muted);
}
.hp-article-meta strong { color: var(--hp-text); }
.hp-article-meta i { color: var(--hp-green); margin-right: .2rem; }

.hp-article-cover { margin: 0 0 2rem; border-radius: var(--hp-radius); overflow: hidden; }
.hp-scope .hp-article-cover img,
.hp-article-cover img { width: 100%; height: auto; display: block; }

.hp-article-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--hp-text);
    border-left: 3px solid var(--hp-green);
    padding-left: 1.1rem;
    margin-bottom: 2rem;
}

/* Long-form typography: bigger than the shared rich text, with breathing room. */
.hp-article-body { color: #40454f; font-size: 1rem; line-height: 1.9; }
.hp-article-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; scroll-margin-top: 6rem; }
.hp-article-body h3 { font-size: 1.25rem; margin: 2rem 0 .85rem; scroll-margin-top: 6rem; }
.hp-article-body p { margin-bottom: 1.25rem; }
.hp-article-body ul,
.hp-article-body ol { margin-bottom: 1.25rem; }
.hp-article-body li { margin-bottom: .5rem; }
.hp-article-body img { margin: 1.5rem 0; border-radius: 12px; max-width: 100%; height: auto; }
.hp-article-body blockquote {
    border-left: 3px solid var(--hp-accent);
    background: var(--hp-accent-soft);
    border-radius: 0 12px 12px 0;
    padding: 1.1rem 1.35rem;
    margin: 1.75rem 0;
    font-style: italic;
    color: var(--hp-text);
}
.hp-article-body blockquote p:last-child { margin-bottom: 0; }

.hp-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hp-border);
}
.hp-share-label { font-weight: 600; font-size: .85rem; }
.hp-share-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.hp-share-links a,
.hp-share-copy {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hp-border);
    background: #fff;
    color: var(--hp-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: all .2s ease;
}
.hp-share-links a:hover,
.hp-share-copy:hover { background: var(--hp-accent); border-color: var(--hp-accent); color: #fff; transform: translateY(-2px); }
.hp-share-copy.copied { background: var(--hp-green); border-color: var(--hp-green); color: #fff; }
.hp-share-copy.copied::after {
    content: 'Copied';
    position: absolute;
    bottom: calc(100% + .4rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--hp-text);
    color: #fff;
    font-size: .68rem;
    padding: .15rem .45rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Author card */
.hp-author {
    display: flex;
    gap: 1.25rem;
    background: var(--hp-gray);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 1.75rem;
}
.hp-author-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    background: var(--hp-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .02em;
}
.hp-author-avatar--sm { width: 28px; height: 28px; flex: 0 0 28px; font-size: .75rem; }
.hp-author-name { font-size: 1.15rem; font-weight: 700; margin: .2rem 0 .5rem; }
.hp-author-bio { color: var(--hp-muted); font-size: .9rem; line-height: 1.7; margin-bottom: 1rem; }
.hp-author-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .82rem; color: var(--hp-muted); }
.hp-author-meta a { color: var(--hp-accent); text-decoration: none; font-weight: 600; }
.hp-author-meta a:hover { text-decoration: underline; }
.hp-author-meta i { margin-right: .3rem; color: var(--hp-green); }

/* Sidebar */
.hp-sidebar { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .hp-sidebar { position: sticky; top: 96px; } }
.hp-side-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 1.5rem;
}
.hp-side-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.hp-side-cta { background: var(--hp-mint-soft); border-color: transparent; }
.hp-side-cta p { font-size: .875rem; color: var(--hp-muted); line-height: 1.7; }

.hp-toc { margin: 0; padding-left: 1.1rem; display: grid; gap: .6rem; }
.hp-toc li { color: var(--hp-border); }
.hp-toc a { color: var(--hp-muted); text-decoration: none; font-size: .85rem; line-height: 1.5; }
.hp-toc a:hover { color: var(--hp-accent); }

.hp-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hp-related a { display: flex; gap: .85rem; align-items: center; text-decoration: none; color: inherit; }
.hp-related-thumb { width: 72px; height: 60px; flex: 0 0 72px; border-radius: 10px; overflow: hidden; background: var(--hp-gray); }
.hp-scope .hp-related-thumb img,
.hp-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hp-related a:hover .hp-related-thumb img { transform: scale(1.08); }
.hp-related-date { display: block; font-size: .72rem; color: var(--hp-muted); margin-bottom: .15rem; }
.hp-related-title { font-size: .85rem; font-weight: 600; line-height: 1.4; }
.hp-related a:hover .hp-related-title { color: var(--hp-accent); }

@media (max-width: 767.98px) {
    .hp-article-title { font-size: 1.7rem; }
    .hp-author { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Thank you page
   -------------------------------------------------------------------------- */

.hp-thanks {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: rgba(149, 157, 165, .12) 0 8px 24px;
}
.hp-thanks-ico {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hp-mint);
    color: var(--hp-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.hp-search-bar { position: relative; }
.hp-search-bar > i.fa-search { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--hp-muted); }
.hp-search-bar .form-control {
    border-radius: 999px;
    border: 1px solid var(--hp-border);
    background: #fff;
    padding: .9rem 3.2rem;
    font-size: .95rem;
}
.hp-search-bar .form-control:focus { border-color: var(--hp-primary); box-shadow: 0 0 0 .2rem rgba(1, 182, 123, .15); }
/* Chrome draws its own clear button on type=search; we ship our own. */
.hp-search-bar input[type="search"]::-webkit-search-cancel-button,
.hp-search-bar input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.hp-search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--hp-muted);
    font-size: .9rem;
}
.hp-search-clear:hover { color: var(--hp-accent); }
.hp-search-spinner { position: absolute; right: 2.5rem; top: 50%; transform: translateY(-50%); color: var(--hp-primary); }

.hp-scope .pagination { justify-content: center; gap: .35rem; flex-wrap: wrap; }
.hp-scope .page-link { border-radius: 8px; border-color: var(--hp-border); color: var(--hp-text); font-size: .875rem; }
.hp-scope .page-item.active .page-link { background: var(--hp-accent); border-color: var(--hp-accent); color: #fff; }
.hp-scope .page-link:hover { color: var(--hp-accent); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.hp-order-form .form-control,
.hp-order-form .form-select {
    border-radius: 999px;
    background: var(--hp-gray);
    border: 1px solid #ececf0;
    font-size: .85rem;
    padding: .6rem 1.1rem;
}
.hp-order-form .form-control:focus,
.hp-order-form .form-select:focus {
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 .2rem rgba(1, 182, 123, .15);
}

/* --------------------------------------------------------------------------
   Overview / FAQs tabs
   -------------------------------------------------------------------------- */

.hp-info-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.hp-info-tabs--start { justify-content: flex-start; }
.hp-info-tabs .nav-link {
    border: 1.5px solid var(--hp-border);
    background: #fff;
    color: var(--hp-muted);
    border-radius: 999px;
    padding: .55rem 1.6rem;
    font-size: .875rem;
    font-weight: 600;
    transition: all .25s ease;
}
.hp-info-tabs .nav-link:hover { border-color: var(--hp-accent); color: var(--hp-accent); }
.hp-info-tabs .nav-link.active { background: var(--hp-accent); border-color: var(--hp-accent); color: #fff; }

/* Admin-authored HTML, so every heading level and images must be tamed. */
.hp-richtext { color: var(--hp-muted); line-height: 1.8; }
.hp-richtext h1,
.hp-richtext h2,
.hp-richtext h3,
.hp-richtext h4,
.hp-richtext h5,
.hp-richtext h6 { color: var(--hp-text); font-weight: 600; margin: 1.5rem 0 .75rem; }
.hp-richtext h1 { font-size: 1.6rem; }
.hp-richtext h2 { font-size: 1.4rem; }
.hp-richtext h3 { font-size: 1.15rem; }
.hp-richtext h4 { font-size: 1rem; }
.hp-richtext > :first-child { margin-top: 0; }
.hp-richtext ul,
.hp-richtext ol { padding-left: 1.25rem; }
.hp-richtext a { color: var(--hp-accent); }
.hp-richtext img { max-width: 100%; height: auto; border-radius: 12px; }
.hp-richtext table { width: 100%; overflow-x: auto; display: block; }

/* Admin copy can run to thousands of words; cap it and let it scroll so the
   sections below stay reachable. The mask hints that there is more to read. */
.hp-richtext--scroll {
    max-height: 22rem;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}
.hp-richtext--scroll::-webkit-scrollbar { width: 6px; }
.hp-richtext--scroll::-webkit-scrollbar-thumb { background: var(--hp-border); border-radius: 3px; }
.hp-richtext--scroll::-webkit-scrollbar-thumb:hover { background: var(--hp-accent); }

.hp-accordion .accordion-body p:last-child { margin-bottom: 0; }
.hp-accordion .accordion-body a { color: var(--hp-accent); }

.hp-accordion .accordion-item { border: 1px solid var(--hp-border); border-radius: 12px !important; margin-bottom: .75rem; overflow: hidden; }
.hp-accordion .accordion-button {
    font-weight: 600;
    font-size: .95rem;
    color: var(--hp-text);
    background: #fff;
    padding: 1.1rem 1.25rem;
    box-shadow: none;
}
.hp-accordion .accordion-button:not(.collapsed) { color: var(--hp-accent); background: var(--hp-accent-soft); }
.hp-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.hp-accordion .accordion-body { color: var(--hp-muted); font-size: .9rem; line-height: 1.75; padding: 1rem 1.25rem 1.25rem; }

/* --------------------------------------------------------------------------
   Contact links, hover lift, scroll reveal
   -------------------------------------------------------------------------- */

.hp-contact a { color: inherit; text-decoration: none; transition: color .2s ease; }
.hp-contact a:hover { color: var(--hp-accent); }

.hp-feature-card,
.hp-testi,
.hp-blog-card { transition: transform .3s ease, box-shadow .3s ease; }
.hp-feature-card:hover,
.hp-blog-card:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); }
.hp-testi:hover { transform: translateY(-6px); }


/* Scoped to .hp-js, which public/js/reveal.js sets on <html> once it runs —
   without it the sections simply render, never hidden by a script that failed. */
.hp-js .hp-anim > section { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.hp-js .hp-anim > section.hp-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .hp-js .hp-anim > section { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 991.98px) {
    .hp-hero h1 { font-size: 2rem; }
    .hp-title { font-size: 1.5rem; }
    .hp-scope .hp-img-tall,
    .hp-img-tall { height: 320px !important; }
}
