/* ═══════════════════════════════════════════
   Joanna Dancona Interior Design — Styles
   ═══════════════════════════════════════════ */

:root {
    --primary-color: #3d3b38;
    --secondary-color: #8c8273;
    --bg-color: #faf9f7;
    --text-color: #2b2b2b;
    --light-bg: #ffffff;
    --accent-color: #c9bcae;
    --muted-bg: #f3f0eb;

    --font-heading: 'Playfair Display', 'Assistant', serif;
    --font-body: 'Assistant', sans-serif;

    --transition: all 0.4s ease;
    --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max-width: 1280px;
}

[dir="ltr"] { --text-align: left; }
[dir="rtl"] { --text-align: right; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

img { display: block; max-width: 100%; }

button { font-family: inherit; }

/* ═══════════ NAVBAR ═══════════ */
.navbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    padding: 1.6rem 5%;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    z-index: 1000;
    color: var(--light-bg);
    background: transparent;
    transition: padding 0.4s ease, background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    color: var(--primary-color);
    background: rgba(250, 249, 247, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(61, 59, 56, 0.08);
}

.logo-link {
    display: block;
    position: relative;
    line-height: 0;
}

.logo-img {
    height: 46px;
    width: auto;
    transition: opacity 0.4s ease, height 0.4s ease;
}

/* White logo over the hero, dark logo once the navbar turns light */
.logo-img--dark {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    opacity: 0;
}

.navbar.scrolled .logo-img { height: 38px; }
.navbar.scrolled .logo-img--light { opacity: 0; }
.navbar.scrolled .logo-img--dark { opacity: 1; }

.icon-instagram {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.info-item .icon-instagram { color: var(--secondary-color); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-inline-start: auto;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.4s var(--ease-soft);
}

.nav-links a:hover::after { width: 100%; }

.lang-toggle {
    background: none;
    border: none;
    color: inherit;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0.8;
    padding: 0.25rem 0.5rem;
    transition: opacity 0.3s ease;
}

.lang-toggle:hover { opacity: 1; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: 5%;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* ═══════════ HERO ═══════════ */
.hero {
    height: 100vh;
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--primary-color);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 2s ease-in-out, transform 9s linear;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--light-bg);
    padding: 0 2rem;
    animation: heroFade 1.8s ease 0.3s both;
}

.hero-studio-name {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1.2;
}

[lang="he"] .hero-studio-name {
    font-family: 'Frank Ruhl Libre', serif;
}

.hero-tagline {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-tagline::before,
.hero-tagline::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin: 0 1rem;
    opacity: 0.6;
}

@keyframes heroFade {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--light-bg);
    opacity: 0.8;
    animation: bounce 2.4s ease-in-out infinite;
}

.hero-scroll-indicator svg { width: 30px; height: 30px; stroke-width: 1.2; }

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 10px); }
}

/* ═══════════ SECTION COMMON ═══════════ */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: 2px;
    margin-bottom: 3.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 1.2rem auto 0;
}

/* ═══════════ PROJECTS ═══════════ */
.projects-section {
    padding: 7rem 5%;
    background-color: var(--light-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.project-card {
    grid-column: span 2;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    aspect-ratio: 4 / 5;
    background: var(--muted-bg);
}

.project-card--featured {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 8;
}

.projects-grid > .project-card:nth-child(2),
.projects-grid > .project-card:nth-child(3) {
    grid-column: span 3;
}

.project-card:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
}

.project-img-wrapper { width: 100%; height: 100%; }

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-soft);
}

.project-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 4rem 2rem 1.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    color: var(--light-bg);
    text-align: var(--text-align);
    transition: padding 0.5s var(--ease-soft), background 0.5s ease;
}

.project-overlay h3 {
    color: var(--light-bg);
    font-size: 1.35rem;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.project-card--featured .project-overlay h3 { font-size: 1.8rem; }

.project-meta {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.project-card:hover .project-img { transform: scale(1.03); }

.project-card:hover .project-overlay {
    padding-bottom: 2.3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
}

/* ═══════════ ABOUT ═══════════ */
.about-section {
    padding: 8rem 5%;
    background-color: var(--bg-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 6rem;
    max-width: 1150px;
    margin: 0 auto;
}

.about-image { flex: 0 0 42%; }

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
}

.about-text { flex: 1; }

.about-text .section-title {
    text-align: var(--text-align);
    margin-bottom: 2.5rem;
}

.about-text .section-title::after { margin: 1.2rem 0 0; }

.about-text p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #5a554e;
    margin-bottom: 1.3rem;
}

.about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(140, 130, 115, 0.25);
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.credential svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.4;
    color: var(--secondary-color);
}

/* ═══════════ TESTIMONIALS ═══════════ */
.testimonials-section {
    padding: 7rem 5%;
    background-color: var(--muted-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.testimonial-card {
    background: var(--light-bg);
    padding: 2.8rem 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-soft), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(61, 59, 56, 0.06);
}

.testimonial-quote svg {
    width: 34px;
    height: 34px;
    color: var(--accent-color);
    stroke-width: 1.2;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--primary-color);
    flex: 1;
    margin-bottom: 1.8rem;
}

.testimonial-author {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
}

/* ═══════════ CONTACT ═══════════ */
.contact-section {
    padding: 8rem 5%;
    background-color: var(--light-bg);
}

.contact-container {
    max-width: 1050px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-paragraph {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #5a554e;
    max-width: 720px;
    margin: 0 auto;
}

.contact-content {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.contact-form {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 2rem;
}

.contact-form input[type="text"][name="name"],
.contact-form select[name="project_type"],
.contact-form textarea,
.contact-form .submit-btn {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0.2rem;
    border: none;
    border-bottom: 1px solid var(--accent-color);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8273' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.2rem center;
    padding-inline-end: 1.5rem;
}

[dir="ltr"] .contact-form select { background-position: right 0.2rem center; }

.contact-form select:invalid,
.contact-form select:has(option[value=""]:checked) { color: #8a857e; }

.contact-form select option { color: var(--text-color); }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a857e; }

.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--primary-color);
    color: var(--light-bg);
    border: 1px solid var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.submit-btn { justify-self: start; margin-top: 0.5rem; }

.submit-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-status {
    grid-column: 1 / -1;
    padding: 1rem 1.25rem;
    font-size: 0.98rem;
    line-height: 1.6;
    border-radius: 2px;
    background-color: var(--muted-bg);
    color: var(--primary-color);
    border-inline-start: 3px solid var(--secondary-color);
}

.form-status--error {
    border-inline-start-color: #a34949;
    color: #7a2e2e;
}

.contact-info {
    flex: 1;
    padding-inline-start: 3rem;
    border-inline-start: 1px solid rgba(140, 130, 115, 0.25);
}

.contact-info h3 {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.info-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.4;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.info-item a {
    font-size: 1rem;
    transition: color 0.3s ease;
    word-break: break-word;
}

.info-item a:hover { color: var(--secondary-color); }

/* ═══════════ PROJECT DETAIL — FULL-SCREEN TAKEOVER ═══════════ */
.project-detail {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--bg-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s var(--ease-soft);
}

.project-detail.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.project-detail-header {
    position: absolute;
    top: 0;
    inset-inline: 0;
    z-index: 5;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.project-detail-close,
.project-detail-back-top {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(250, 249, 247, 0.92);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, background 0.3s ease;
}

.project-detail-close:hover,
.project-detail-back-top:hover {
    transform: scale(1.06);
    background: var(--light-bg);
}

.project-detail-back-top {
    position: absolute;
    bottom: 2rem;
    inset-inline-end: 5%;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.project-detail-back-top.show {
    opacity: 1;
    visibility: visible;
}

.project-detail-body {
    height: 100%;
    overflow-y: auto;
    padding: 6rem 5% 6rem;
    -webkit-overflow-scrolling: touch;
}

.project-detail-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.project-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.project-meta-header {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.project-text {
    max-width: 680px;
    margin: 0 auto 4.5rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #5a554e;
}

.project-text::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--secondary-color);
    margin: 2.5rem auto 0;
}

.img-full,
.img-pair,
.img-detail {
    margin-bottom: 1.5rem;
}

.img-full img {
    width: 100%;
    max-height: 90vh;
    object-fit: cover;
}

.img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.img-pair img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.img-detail {
    width: 62%;
    max-width: 560px;
    margin-inline: auto;
    padding: 3rem 0;
}

.img-detail img { width: 100%; }

.project-detail-content img {
    border-radius: 2px;
    background: var(--muted-bg);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.project-detail-content img.loaded { opacity: 1; }

.project-cta {
    text-align: center;
    padding: 5rem 1rem 2rem;
    border-top: 1px solid rgba(140, 130, 115, 0.2);
    margin-top: 4rem;
}

.project-cta p {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* ═══════════ BEFORE / AFTER ═══════════ */
.ba-container { margin-bottom: 5rem; }

.ba-room-title {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.ba-desktop-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ba-side {
    display: flex;
    flex-direction: column;
}

.ba-side img {
    width: 100%;
    flex: 1;
    object-fit: cover;
}

.ba-label {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.ba-mobile-slider { display: none; }

/* ═══════════ FOOTER ═══════════ */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 5rem 2rem 3rem;
}

.footer-logo {
    height: 64px;
    width: auto;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    background: var(--light-bg);
    border-color: var(--light-bg);
    color: var(--primary-color);
}

.footer-social svg { width: 18px; height: 18px; stroke-width: 1.4; }

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════ ANIMATIONS ═══════════ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .fade-in { opacity: 1; transform: none; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid > .project-card,
    .projects-grid > .project-card:nth-child(2),
    .projects-grid > .project-card:nth-child(3) { grid-column: auto; aspect-ratio: 4 / 5; }
    .project-card--featured .project-overlay h3 { font-size: 1.35rem; }
    .about-container { gap: 3.5rem; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 640px; }
    .contact-content { gap: 3rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 1.2rem 5%; gap: 1rem; }
    .navbar.scrolled { padding: 0.8rem 5%; }
    .nav-links { display: none; }
    .lang-toggle { margin-inline-start: auto; }
    .mobile-menu-btn { display: block; }
    .logo-img { height: 36px; }
    .navbar.scrolled .logo-img { height: 32px; }

    .hero-studio-name { letter-spacing: 3px; }
    .hero-tagline { letter-spacing: 4px; font-size: 0.85rem; }
    .hero-tagline::before,
    .hero-tagline::after { width: 24px; margin: 0 0.6rem; }

    .projects-section,
    .testimonials-section { padding: 5rem 5%; }
    .about-section,
    .contact-section { padding: 5rem 5%; }

    .projects-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .project-card,
    .project-card--featured { aspect-ratio: 4 / 5; }
    .project-overlay { padding: 3rem 1.5rem 1.5rem; }

    .about-container { flex-direction: column; gap: 2.5rem; }
    .about-image { flex: none; width: 100%; }

    .contact-content { flex-direction: column; }
    .contact-form { grid-template-columns: 1fr; width: 100%; }
    .submit-btn { justify-self: stretch; }
    .contact-info {
        padding-inline-start: 0;
        border-inline-start: none;
        padding-top: 2rem;
        border-top: 1px solid rgba(140, 130, 115, 0.25);
        width: 100%;
    }

    .project-detail-body { padding: 5rem 4% 5rem; }
    .img-pair { grid-template-columns: 1fr; gap: 1rem; }
    .img-pair img { aspect-ratio: auto; }
    .img-detail { width: 100%; max-width: none; padding: 0; }
    .img-full, .img-pair, .img-detail { margin-bottom: 1rem; }

    /* Before/After — mobile slider */
    .ba-desktop-side-by-side { display: none; }
    .ba-mobile-slider { display: block; width: 100%; }

    .ba-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 2px;
    }

    .img-before {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .img-after {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        clip-path: polygon(0 0, var(--val) 0, var(--val) 100%, 0 100%);
    }

    .ba-slider {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: ew-resize;
        z-index: 20;
        margin: 0;
    }

    .slider-thumb {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2px;
        background: white;
        z-index: 15;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .slider-thumb svg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        border-radius: 50%;
        padding: 6px;
        width: 36px;
        height: 36px;
        color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .ba-hint {
        text-align: center;
        font-size: 0.8rem;
        letter-spacing: 2px;
        color: var(--secondary-color);
        margin-top: 0.7rem;
    }
}

@media (min-width: 769px) {
    .ba-hint { display: none; }
}
