/* Home page polish — additive, loaded only from home.blade.php */

/* ---------- Hero ---------- */
.header-title { text-wrap: balance; letter-spacing: -.02em; }
.header-text { text-wrap: balance; max-width: 640px; margin-inline: auto; opacity: .95; }
.home-search .search-input { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35); }
.home-search .search-input .form-control { height: 60px; }

/* ---------- Section rhythm ---------- */
.section { padding-top: 48px; padding-bottom: 48px; }
.section-header { margin-bottom: 24px; }
.section-title { letter-spacing: -.01em; }
@media (max-width: 991.98px) {
    .section { padding-top: 32px; padding-bottom: 32px; }
    .section-title { font-size: 26px; }
}

/* ---------- Business cards ---------- */
.item.box {
    border: 1px solid rgb(var(--border_color));
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.item.box:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary_color), .35);
    box-shadow: 0 14px 28px -18px rgba(var(--primary_color), .55);
}
/* fixed logo slot so broken/missing images never squeeze the title */
.item-img { flex: 0 0 80px; width: 80px; height: 80px; }
.item-img img {
    width: 80px; height: 80px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgb(var(--border_color));
    /* hide alt text of broken images */
    font-size: 0; color: transparent; overflow: hidden;
}
.item-img img.is-fallback { object-fit: cover; padding: 0; }
.item-title { font-weight: 600; }
.item-no-reviews { font-size: .8rem; color: rgb(var(--text_muted_color)); }
.item-text p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    overflow: hidden; line-height: 1.55;
}

/* ---------- Blog cards: show full 1.91:1 cover art instead of cropping ---------- */
.blog-post .blog-post-header { height: auto; aspect-ratio: 1200 / 630; border-radius: 16px; }
.blog-post .blog-post-img { object-position: center; }
.blog-post:hover .blog-post-img { transform: scale(1.02); }
.blog-post .blog-post-title { font-size: 1.15rem; line-height: 1.4; }
.blog-post .blog-post-text {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    overflow: hidden; line-height: 1.6; font-size: .95rem;
}

/* ---------- Interlink blocks (location / service chips) ---------- */
.interlinks { padding: 28px 32px; }
.interlinks .bp-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 16px; }
.interlinks .bp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.interlinks .bp-chip {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: rgb(var(--inner_background_color, 247, 247, 247));
    border: 1px solid rgb(var(--border_color));
    color: rgb(var(--text_color)); font-size: .9rem; line-height: 1.4;
    transition: transform .2s ease, background .2s, border-color .2s, color .2s;
}
.interlinks .bp-chip:hover {
    transform: translateY(-1px);
    background: rgba(var(--primary_color), .08);
    border-color: rgba(var(--primary_color), .4);
    color: rgb(var(--primary_color));
}
.interlinks .bp-chips li:last-child .bp-chip { font-weight: 600; color: rgb(var(--primary_color)); }
@media (max-width: 575.98px) { .interlinks { padding: 20px; } }

/* ---------- Initial-letter logo fallback ---------- */
.item-initial {
    display: grid; place-items: center; width: 80px; height: 80px;
    border-radius: var(--border_radius);
    background: rgba(var(--primary_color), .1);
    color: rgb(var(--primary_color));
    font-size: 2rem; font-weight: 700; line-height: 1;
}
/* keep "[Read more...]" visible: no clamp, link on its own line */
.blog-post .blog-post-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.blog-post .blog-post-text a { display: block; margin-top: 4px; font-weight: 500; }

/* =====================================================================
   PREMIUM LAYER — depth, rhythm, refined type
   ===================================================================== */
:root {
    --hp-radius: 16px;
    --hp-ease: cubic-bezier(.22, .61, .36, 1);
    --hp-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --hp-shadow-md: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 28px -12px rgba(16, 24, 40, .16);
    --hp-shadow-lg: 0 4px 8px rgba(16, 24, 40, .04), 0 24px 48px -16px rgba(16, 24, 40, .22);
}

/* ---- Hero: contrast, scale, depth ---- */
.header.header-image { position: relative; isolation: isolate; }
.header.header-image::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 70% at 50% 40%, rgba(120, 30, 0, .28), transparent 70%),
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .18));
}
.header-title {
    font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
    font-weight: 700; line-height: 1.1; letter-spacing: -.03em;
    text-shadow: 0 2px 24px rgba(90, 20, 0, .35);
}
.header-text { font-size: clamp(1rem, .9rem + .4vw, 1.2rem); line-height: 1.6; text-shadow: 0 1px 12px rgba(90, 20, 0, .3); }
.home-search .search-input {
    border-radius: 999px; background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .18), 0 24px 48px -18px rgba(70, 15, 0, .55);
    transition: box-shadow .25s var(--hp-ease);
}
.home-search .search-input:focus-within {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .32), 0 28px 56px -18px rgba(70, 15, 0, .6);
}

/* ---- Section headings: confident, with a refined accent ---- */
.section-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; }
.section-title span::before { height: 8px; bottom: 4px; left: 0; width: 100%; border-radius: 4px; background-color: rgba(var(--primary_color), .22); }
.section-text { color: rgb(var(--text_muted_color)); }

/* ---- Surfaces: one consistent card language ---- */
.item.box, .home-category.box, .interlinks.box, .accordion-custom .accordion-item {
    border-radius: var(--hp-radius);
    border-color: rgba(var(--border_color), .9);
    box-shadow: var(--hp-shadow-sm);
}
.item.box, .home-category.box { transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease), border-color .3s; }
.item.box:hover, .home-category.box:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-lg);
    border-color: rgba(var(--primary_color), .28);
}
.item-img img, .item-initial { border-radius: 14px; }
.item-img img { box-shadow: var(--hp-shadow-sm); }
.item-title { letter-spacing: -.01em; }
.item-link { font-size: .82rem; }
.item-text { border-top-style: dashed; }
.ratings-text b { font-weight: 700; }

/* ---- Category tiles ---- */
.home-category-icon { border-radius: 16px; transition: transform .3s var(--hp-ease); }
.home-category.box:hover .home-category-icon { transform: scale(1.06); }
.home-category-title { font-weight: 600; letter-spacing: -.01em; }

/* ---- Buttons ---- */
.btn.btn-outline-primary {
    border-radius: 999px; font-weight: 500; letter-spacing: .01em;
    transition: background .25s var(--hp-ease), color .25s, box-shadow .25s var(--hp-ease), transform .25s var(--hp-ease);
}
.btn.btn-outline-primary:hover { box-shadow: 0 10px 22px -10px rgba(var(--primary_color), .7); transform: translateY(-1px); }
.swiper-actions .swiper-button-next, .swiper-actions .swiper-button-prev { border-radius: 12px; box-shadow: var(--hp-shadow-sm); }

/* ---- Blog ---- */
.blog-post .blog-post-header { border-radius: 18px; box-shadow: var(--hp-shadow-md); transition: box-shadow .3s var(--hp-ease), transform .3s var(--hp-ease); }
.blog-post:hover .blog-post-header { box-shadow: var(--hp-shadow-lg); transform: translateY(-3px); }
.blog-post .blog-post-title { font-weight: 600; letter-spacing: -.015em; }
.blog-post :not(.blog-post-header) .blog-post-category { border-radius: 999px; font-size: .78rem; font-weight: 500; padding: 5px 12px; }

/* ---- FAQ ---- */
.accordion-custom .accordion-item { overflow: hidden; transition: box-shadow .25s var(--hp-ease); }
.accordion-custom .accordion-item:hover { box-shadow: var(--hp-shadow-md); }

/* ---- Interlinks ---- */
.interlinks.box { box-shadow: var(--hp-shadow-sm); }
.interlinks .bp-chip { background: #fff; }

/* ---- Accessibility & motion ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid rgb(var(--primary_color)); outline-offset: 3px; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
    .item.box, .home-category.box, .blog-post-header, .btn, .home-category-icon { transition: none !important; transform: none !important; }
}
@media (max-width: 575.98px) {
    .section { padding-top: 28px; padding-bottom: 28px; }
    .item.box:hover, .home-category.box:hover { transform: none; }
}

/* =====================================================================
   GRAPHICS — hero curve, how-it-works, business CTA
   ===================================================================== */
/* curved divider under hero */
.header.header-image::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; z-index: 0; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C240 0 480 0 720 12s480 18 720 0v28z' fill='%23fafafa'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

/* how it works */
.hp-steps { display: flex; align-items: flex-start; justify-content: center; gap: 12px; }
.hp-step { flex: 1 1 0; max-width: 320px; text-align: center; padding: 8px 12px; }
.hp-step-art {
    width: 120px; height: 120px; margin: 0 auto 14px; color: rgb(var(--primary_color));
    transition: transform .4s var(--hp-ease);
}
.hp-step:hover .hp-step-art { transform: translateY(-4px) rotate(-3deg); }
.hp-art-bg { fill: rgba(var(--primary_color), .1); }
.hp-art-accent { stroke: rgb(var(--primary_color)); }
.hp-art-accent-fill { fill: rgb(var(--primary_color)); }
.hp-step-art svg [fill="currentColor"] { fill: #1b2437; }
.hp-step-art svg [stroke="currentColor"] { stroke: #1b2437; }
.hp-step-num { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: rgb(var(--primary_color)); margin-bottom: 4px; }
.hp-step h5 { font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.hp-step p { color: rgb(var(--text_muted_color)); line-height: 1.6; margin: 0; }
.hp-step-line {
    flex: 0 0 72px; height: 2px; margin-top: 60px;
    background: repeating-linear-gradient(90deg, rgba(var(--primary_color), .45) 0 6px, transparent 6px 12px);
}
@media (max-width: 767.98px) {
    .hp-steps { flex-direction: column; align-items: center; gap: 24px; }
    .hp-step-line { display: none; }
}

/* business CTA */
.hp-cta {
    position: relative; overflow: hidden; border-radius: 24px; padding: 48px 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: radial-gradient(80% 120% at 100% 0, rgba(var(--primary_color), .35), transparent 60%), linear-gradient(135deg, #111a2e, #1b2744);
    color: #fff; box-shadow: var(--hp-shadow-lg);
}
.hp-cta-body { position: relative; z-index: 1; max-width: 560px; }
.hp-cta h3 { color: #fff; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.hp-cta p { color: rgba(255, 255, 255, .78); line-height: 1.6; margin: 0 0 22px; }
.hp-cta-btn { background: rgb(var(--primary_color)); color: #fff; border-radius: 999px; padding: 10px 26px; font-weight: 500; transition: transform .25s var(--hp-ease), box-shadow .25s var(--hp-ease); }
.hp-cta-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(var(--primary_color), .85); }
.hp-cta-art { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: 55%; pointer-events: none; }
.hp-cta-dot { fill: rgb(var(--primary_color)); }
.hp-cta-star { fill: #ffb400; }
@media (max-width: 767.98px) { .hp-cta { padding: 32px 24px; } .hp-cta-art { opacity: .35; max-width: 100%; } }
.hp-cta-star { transform: translateY(-18px); }
