/*
 * Client sites: Bootstrap 5 RTL + the business color (--site, set in the layout).
 * Shared components; every template (css/site/<template>.css) tunes the tokens below and adds its own hero/gallery.
 */
:root {
    --bs-body-font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --bs-body-color: #1d1f2b;
    --site-font-head: var(--bs-body-font-family);
    --site-head-weight: 800;
    --site-head-spacing: -.03em;
    --site-radius: 1.25rem;
    --site-btn-radius: 50rem;
    --site-section-y: clamp(4rem, 8vw, 7rem);
    --site-alt-bg: color-mix(in srgb, var(--site) 6%, #fff);
    --site-card-bg: var(--bs-body-bg);
    --site-card-shadow: 0 18px 44px -22px rgba(16, 24, 40, .28);
    --site-card-border: 0;
    --site-footer-bg: #101117;
    --site-footer-color: rgba(255, 255, 255, .62);
    --site-footer-strong: #fff;
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .section-title, .hero-title, .post-title { font-family: var(--site-font-head); letter-spacing: var(--site-head-spacing); }
::selection { background: rgba(var(--site-rgb), .2); }

/* ---------- buttons ---------- */
.text-site { color: var(--site) !important; }
.btn { font-weight: 600; }
.site-btn, .site-actions .btn, .site-nav-cta { border-radius: var(--site-btn-radius); }
.btn-site {
    --bs-btn-color: #fff; --bs-btn-bg: var(--site); --bs-btn-border-color: var(--site);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--site); --bs-btn-hover-border-color: var(--site);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--site); --bs-btn-active-border-color: var(--site);
    --bs-btn-focus-shadow-rgb: var(--site-rgb);
}
.btn-site:hover { filter: brightness(.92); }
.btn-wa {
    --bs-btn-color: #fff; --bs-btn-bg: #25d366; --bs-btn-border-color: #25d366;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1fb457; --bs-btn-hover-border-color: #1fb457;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #128c4b; --bs-btn-active-border-color: #128c4b;
}
.site-actions .btn { transition: transform .2s, box-shadow .2s, filter .2s, background-color .2s; }
.site-actions .btn:hover { transform: translateY(-2px); }

/* ---------- navbar ---------- */
.site-nav { padding-block: 1rem; transition: background-color .3s, box-shadow .3s, padding .3s; }
.site-nav .navbar-brand { font-family: var(--site-font-head); font-weight: var(--site-head-weight); font-size: 1.2rem; color: var(--bs-body-color); }
.site-nav .nav-link { font-weight: 500; color: var(--bs-body-color); position: relative; }
.site-nav .nav-link::after {
    content: ""; position: absolute; inset-inline: .5rem; bottom: .2rem; height: 2px;
    background: var(--site); transform: scaleX(0); transition: transform .25s;
}
.site-nav .nav-link:hover::after { transform: scaleX(1); }
.site-nav .navbar-toggler { color: var(--bs-body-color); }
.site-brand-logo { border-radius: 50%; }
.site-initial {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--site); color: #fff; font-weight: 700;
}
/* over a cover: white until the page scrolls */
.nav-overlay .site-nav:not(.scrolled) .navbar-brand,
.nav-overlay .site-nav:not(.scrolled) .nav-link,
.nav-overlay .site-nav:not(.scrolled) .navbar-toggler { color: #fff; }
.nav-overlay .site-nav:not(.scrolled) .site-nav-cta { --bs-btn-bg: rgba(255, 255, 255, .16); --bs-btn-border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.site-nav.scrolled, .nav-solid .site-nav {
    background: color-mix(in srgb, var(--bs-body-bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 0 var(--bs-border-color-translucent);
}
.site-nav.scrolled { padding-block: .6rem; }
.site-page-top { height: 82px; }
.nav-solid .site-page-top { display: none; }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        background: var(--bs-body-bg); border-radius: 1rem; padding: 1rem; margin-top: .75rem;
        box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .4);
    }
    .nav-overlay .site-nav .navbar-collapse .nav-link { color: var(--bs-body-color) !important; }
    .site-nav .nav-link::after { display: none; }
    .site-nav-cta { width: 100%; }
}

/* ---------- hero: shared bits ---------- */
@keyframes siteFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-fade { animation: siteFadeUp .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-fade + .hero-fade { animation-delay: .12s; }
.hero-fade + .hero-fade + .hero-fade { animation-delay: .24s; }
.hero-fade + .hero-fade + .hero-fade + .hero-fade { animation-delay: .36s; }
.hero-title { font-weight: var(--site-head-weight); line-height: 1.02; margin-bottom: 1.25rem; overflow-wrap: break-word; font-size: var(--title-size, 3.5rem); }
/* never wider than the column: the longest word of the name (--len, set in the view) must fit on one line */
.hero-fit { container-type: inline-size; }
.hero-fit .hero-title { font-size: max(2rem, min(var(--title-size, 3.5rem), calc(100cqi / (var(--len, 8) * var(--title-char, .6))))); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; margin-bottom: 2rem; max-width: 40rem; }
.hero-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem 1rem; border-radius: 50rem; font-weight: 500; font-size: .9rem;
}

/* stats: works / rating / reviews */
.site-stats { gap: 2.5rem; }
.site-stat-value { font-family: var(--site-font-head); font-weight: var(--site-head-weight); font-size: 2rem; line-height: 1.1; }
.site-stat-value .bi { color: #f5b301; font-size: .8em; vertical-align: .05em; }
.site-stat-label { font-size: .9rem; opacity: .7; }

/* ---------- sections ---------- */
.site-section { padding-block: var(--site-section-y); }
.section-kicker {
    display: inline-block; color: var(--site); font-weight: 700; font-size: .9rem;
    letter-spacing: .02em; margin-bottom: .6rem;
}
.section-title { font-weight: var(--site-head-weight); font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; }

/* scroll reveal (the class is added by JS, so content is visible without it) */
.has-reveal .reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .hero-fade { animation: none; }
    .has-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- gallery tiles ---------- */
.gallery-item { aspect-ratio: 1 / 1; border-radius: var(--site-radius); background: var(--bs-tertiary-bg); isolation: isolate; }
.gallery-item img, .gallery-item video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.06); }
.gallery-caption {
    position: absolute; inset: auto 0 0 0; padding: 3rem 1.1rem 1rem;
    color: #fff; font-weight: 500; font-size: .95rem; line-height: 1.4;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75));
    opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: none; }
@media (hover: none) { .gallery-caption { opacity: 1; transform: none; } }
.gallery-badge {
    position: absolute; top: .75rem; left: .75rem; z-index: 1;
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .5); color: #fff; backdrop-filter: blur(6px);
}
.gallery-text {
    height: 100%; min-height: 12rem;
    background: linear-gradient(135deg, rgba(var(--site-rgb), .14), rgba(var(--site-rgb), .04));
    color: var(--bs-body-color); font-size: 1.05rem; line-height: 1.6;
}
.gallery-text-quote { color: var(--site); font-size: 2rem; line-height: 1; margin-bottom: .5rem; }

/* ---------- reviews ---------- */
.reviews-section { background: var(--site-alt-bg); }
.reviews-carousel { padding-bottom: 3rem; }
.reviews-carousel .carousel-indicators { margin-bottom: 0; }
.reviews-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border: 0; border-radius: 50%; background-color: var(--site); }
.reviews-carousel .carousel-control-prev, .reviews-carousel .carousel-control-next { width: 3.5rem; }
.reviews-carousel .carousel-control-prev-icon, .reviews-carousel .carousel-control-next-icon {
    width: 2.75rem; height: 2.75rem; border-radius: 50%; background-size: 45%;
    background-color: var(--bs-body-color); filter: none; opacity: .85;
}
[data-bs-theme="light"] .reviews-carousel .carousel-control-prev-icon,
[data-bs-theme="light"] .reviews-carousel .carousel-control-next-icon { background-color: #1d1f2b; }
.review-card { max-width: 940px; background: var(--site-card-bg); box-shadow: var(--site-card-shadow); border: var(--site-card-border) !important; border-radius: var(--site-radius); }
.review-photo { width: 100%; height: 100%; min-height: 260px; max-height: 440px; object-fit: cover; display: block; }
.review-stars { color: #f5b301; font-size: 1.15rem; letter-spacing: .1em; }
.review-text { font-size: 1.2rem; line-height: 1.75; white-space: pre-line; margin: 0; }
.review-avatar {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%;
    background: var(--site); color: #fff; font-weight: 700; font-size: 1.2rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.review-quote { color: var(--site); font-size: 2.5rem; line-height: 1; }
@media (max-width: 767.98px) {
    .review-photo { min-height: 220px; max-height: 280px; }
    .reviews-carousel .carousel-control-prev, .reviews-carousel .carousel-control-next { display: none; }
}

/* ---------- about ---------- */
.about-text { font-size: 1.15rem; line-height: 1.85; color: var(--bs-secondary-color); white-space: pre-line; }
.hours-card { background: var(--site-card-bg); box-shadow: var(--site-card-shadow); border: var(--site-card-border) !important; border-radius: var(--site-radius); }
.hours-text { white-space: pre-line; line-height: 1.9; }

/* ---------- contact ---------- */
.contact-card {
    background: var(--site-card-bg); box-shadow: var(--site-card-shadow);
    border: var(--site-card-border) !important; border-radius: var(--site-radius);
    transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -24px rgba(var(--site-rgb), .55); }
.contact-icon {
    width: 3.5rem; height: 3.5rem; border-radius: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--site); background: rgba(var(--site-rgb), .1);
}
.contact-icon-sm { width: 2.25rem; height: 2.25rem; border-radius: .7rem; font-size: 1.05rem; }
.map-frame { border-radius: var(--site-radius); box-shadow: var(--site-card-shadow); }
.map-frame iframe { border: 0; filter: saturate(.85); }

/* ---------- post / review pages ---------- */
.post-back { color: var(--bs-secondary-color); text-decoration: none; font-weight: 500; }
.post-back:hover { color: var(--site); }
.post-media { border-radius: var(--site-radius); box-shadow: var(--site-card-shadow); }
.post-media .carousel-item img { max-height: 82vh; object-fit: contain; background: #111; }
.post-date { color: var(--bs-secondary-color); font-size: .9rem; }
.post-title { font-weight: var(--site-head-weight); font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.15; }
.post-text { font-size: 1.1rem; line-height: 1.9; white-space: pre-line; }
.review-form-card { background: var(--site-card-bg); box-shadow: var(--site-card-shadow); border: var(--site-card-border) !important; border-radius: var(--site-radius); }

/* ---------- footer ---------- */
.site-footer { background: var(--site-footer-bg); color: var(--site-footer-color); }
.site-footer-name { font-family: var(--site-font-head); font-weight: var(--site-head-weight); font-size: 1.35rem; color: var(--site-footer-strong); }
.site-footer-title { color: var(--site-footer-strong); font-weight: 700; margin-bottom: 1rem; }
.site-footer-muted { line-height: 1.7; }
.site-footer-link { color: var(--site-footer-color); text-decoration: none; transition: color .2s; }
.site-footer-link:hover { color: var(--site-footer-strong); }
.site-footer-link .bi { width: 1.4rem; display: inline-block; }
.site-footer-bottom { border-top: 1px solid color-mix(in srgb, var(--site-footer-color) 25%, transparent); }
.social-btn {
    width: 2.9rem; height: 2.9rem; border-radius: 50%; font-size: 1.15rem;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--site-footer-strong); text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--site-footer-color) 40%, transparent);
    transition: background-color .2s, color .2s, transform .2s;
}
.social-btn:hover { background: var(--site-footer-strong); color: var(--site-footer-bg); transform: translateY(-2px); }

/* ---------- floating WhatsApp ---------- */
.wa-float {
    position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 1030;
    width: 3.75rem; height: 3.75rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #25d366; color: #fff; font-size: 1.9rem;
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
    transition: transform .2s;
}
.wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { color: #fff; transform: scale(1.08); }

.pagination {
    --bs-pagination-active-bg: var(--site); --bs-pagination-active-border-color: var(--site);
    --bs-pagination-color: var(--site); --bs-pagination-hover-color: var(--site);
    --bs-pagination-focus-color: var(--site); --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--site-rgb), .25);
}

/* reviews: star rating input (row-reverse in RTL keeps 1 on the right) */
.star-input { position: relative; display: inline-flex; flex-direction: row-reverse; gap: .25rem; font-size: 2rem; line-height: 1; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { color: #d8dbe2; cursor: pointer; transition: color .15s, transform .15s; }
.star-input label:hover { transform: scale(1.1); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5b301; }
.review-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }

/* accessibility: the device asks for less motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
