/* ===================================
   CSS CUSTOM PROPERTIES
   =================================== */
:root {
    /* Colors */
    --bg-dark: #1a1a1a;
    --bg-card: #252525;
    --text-light: #f5f2ee;
    --accent: #c9a84c;
    --accent-hover: #d4b85c;
    
    /* Typography */
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --spacing-xxl: 96px;
    
    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    
    /* Layout */
    --max-width: 1280px;
    --nav-height: 70px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-lg);
    z-index: 1000;
    width: 100%;
}

body {
    padding-top: var(--nav-height);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 250ms ease;
}

.navbar-brand img {
    transition: 250ms ease;
}

.navbar-brand span {
    transition: 250ms ease;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.6));
}

.navbar-brand:hover span {
    color: #c9a84c;
    text-decoration: underline;
    text-decoration-color: #c9a84c;
    text-underline-offset: 4px;
    transition: color 250ms ease, text-decoration 250ms ease, text-underline-offset 250ms ease;
}

.navbar-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    min-width: 0;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar-fb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--accent);
    font-size: 1.125rem;
    opacity: 0.85;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.navbar-fb:hover {
    opacity: 1;
    color: var(--accent-hover);
}

.navbar-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: var(--accent);
    color: var(--bg-dark);
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar-call:hover {
    background-color: var(--accent-hover);
    color: var(--bg-dark);
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.35);
}

.navbar-call i {
    font-size: 0.875rem;
}

.navbar-call-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar-call-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.navbar-call-number {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.15;
}

.navbar-links a {
    font-weight: 500;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav */
.navbar-mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    z-index: 999;
}

.navbar-mobile > a {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-mobile-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    width: min(100%, 300px);
    margin-top: -24px;
}

.navbar-mobile-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    background-color: rgba(201, 168, 76, 0.08);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.navbar-mobile-action i {
    font-size: 1.375rem;
    line-height: 1;
}

.navbar-mobile-action:hover {
    background-color: rgba(201, 168, 76, 0.16);
    border-color: var(--accent);
    color: var(--accent-hover);
}

.navbar-mobile.open {
    display: flex;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23252525" width="100" height="100"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--spacing-xxl) var(--spacing-lg);
}

.hero-logo {
    width: auto;
    height: clamp(80px, 14vw, 200px);
    margin-bottom: var(--spacing-md);
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero .tagline {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.hero .phone {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

.hero .phone a {
    color: inherit;
    text-decoration: none;
    transition: color 250ms ease, transform 250ms ease;
}

.hero .phone a:hover {
    color: #c9a84c;
    transform: translateY(-2px);
}

.hero .btn {
    margin-top: var(--spacing-md);
}

/* ===================================
   SERVICES GRID
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.service-card {
    background-color: var(--bg-card);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

/* Mobile hero image adjustments to avoid over-zooming */
@media (max-width: 768px) {
    .hero {
        /* Allow the background to scroll on mobile and reposition to show more of the image */
        background-attachment: scroll !important;
        background-position: center top !important;
        background-size: auto 120% !important;
        padding: calc(var(--spacing-xl) / 2) var(--spacing-lg);
    }
}

.service-card:hover {
    border-color: var(--accent);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    font-size: 1.25rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.6;
    text-align: center;
}

.service-card ul li {
    margin-bottom: 4px;
}

.service-section-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.service-section-content ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.service-section-content ul li::before {
    content: "—";
    color: #c9a84c;
    position: absolute;
    left: 0;
}

/* ===================================
   TRUST STRIP
   =================================== */
.trust-strip {
    background-color: var(--bg-card);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.trust-strip-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.trust-item {
    text-align: center;
    flex: 1;
}

.trust-item:not(:last-child) {
    border-right: 1px solid rgba(245, 242, 238, 0.2);
}

.trust-item .number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--accent);
}

.trust-item .label {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    margin-top: var(--spacing-sm);
}

/* ===================================
   MAP SECTION
   =================================== */
.map-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}

.map-section h2 {
    margin-bottom: var(--spacing-lg);
}

.map-embed {
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

/* ===================================
   GALLERY PAGE
   =================================== */
.gallery-page {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.gallery-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-card);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.gallery-masonry {
    columns: 3;
    column-gap: var(--spacing-sm);
}

.gallery-masonry img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: opacity var(--transition-normal);
}

.gallery-item.hidden {
    display: none;
}

/* Lazy-load fade-in */
.gallery-item img {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 420ms ease, transform 420ms ease;
    will-change: opacity, transform;
}

.gallery-item.visible img {
    opacity: 1;
    transform: none;
}

/* Filters bar */
.gallery-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gallery-filters .filter-btn {
    padding: 8px 12px;
    background: var(--bg-card);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
}

.gallery-filters .filter-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
}

.img-placeholder {
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
}

/* ===================================
   LIGHTBOX
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    padding: var(--spacing-lg);
}

.lightbox-prev {
    left: var(--spacing-md);
}

.lightbox-next {
    right: var(--spacing-md);
}

/* ===================================
   SERVICES PAGE
   =================================== */
.services-page {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.services-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.service-section {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.service-section:nth-child(even) {
    flex-direction: row-reverse;
}

.service-section-content {
    flex: 1;
}

.service-section-content h2 {
    margin-bottom: var(--spacing-md);
}

.service-section-image {
    flex: 1;
}

.service-section-image .img-placeholder {
    width: 100%;
    height: 300px;
}

.service-divider {
    border: none;
    border-top: 1px solid rgba(245, 242, 238, 0.2);
    margin: var(--spacing-xl) auto;
    max-width: var(--max-width);
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-page {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contact-content {
    display: flex;
    gap: var(--spacing-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    margin-bottom: var(--spacing-lg);
}

.contact-info-item {
    margin-bottom: var(--spacing-md);
}

.contact-info-item a {
    color: var(--accent);
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-map {
    margin-top: var(--spacing-lg);
}

.contact-form {
    flex: 1;
}

.contact-form h2 {
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--bg-card);
    border: 2px solid transparent;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--bg-card);
    padding: var(--spacing-lg);
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
}

.footer-contact {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-contact a {
    color: var(--text-light);
    transition: color 250ms ease, transform 250ms ease;
}

.footer-contact a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-social-link {
    color: #c9a84c;
    font-size: 24px;
    opacity: 0.8;
    transition: color 250ms ease, transform 250ms ease, opacity 250ms ease;
}

.footer-social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-phone-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 250ms ease, transform 250ms ease;
}

.footer-phone-link:hover {
    color: #c9a84c;
    transform: translateY(-2px);
}

.footer-location {
    color: var(--text-light);
}

.footer-copyright {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 960px) {
    .navbar-links {
        gap: var(--spacing-md);
    }

    .navbar-actions .navbar-call-number {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .navbar-brand {
        font-size: 1rem;
        gap: 8px;
        min-width: 0;
    }

    .navbar-brand img {
        height: 40px !important;
    }

    .navbar-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-links {
        display: none;
    }

    .navbar-actions {
        display: none;
    }

    .navbar-toggle {
        display: block;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-strip-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .trust-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(245, 242, 238, 0.2);
        padding-bottom: var(--spacing-lg);
    }
    
    .gallery-masonry {
        columns: 2;
    }
    
    .service-section,
    .service-section:nth-child(even) {
        flex-direction: column;
    }
    
    .service-section-image .img-placeholder {
        height: 250px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry {
        columns: 1;
    }
    
    .lightbox-nav {
        font-size: 2rem;
        padding: var(--spacing-sm);
    }
    
    .lightbox-close {
        font-size: 1.5rem;
    }
}

/* ===================================
   PAGE HEADERS - Logo + Accent Line
   =================================== */
.gallery-header,
.services-header,
.contact-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: var(--spacing-xl);
}

.gallery-header .header-logo,
.services-header .header-logo,
.contact-header .header-logo {
    height: 64px;
    width: auto;
    opacity: 0.8;
}

.gallery-header h1,
.services-header h1,
.contact-header h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--text-light);
    margin: 0;
    position: relative;
    padding-bottom: 12px;
}

.gallery-header h1::after,
.services-header h1::after,
.contact-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #c9a84c;
    border-radius: 2px;
}
img-comparison-slider {
    position: relative;
    --divider-color: #c9a84c;
    --divider-width: 3px;
    --divider-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
    --default-handle-color: #c9a84c;
    --default-handle-width: 48px;
    --default-handle-opacity: 1;
    --default-handle-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.ba-label {
    position: absolute;
    bottom: 12px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: white;
    background: rgba(0,0,0,0.45);
    padding: 5px 10px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.ba-label--before {
    left: 12px;
}

.ba-label--after {
    right: 12px;
}

.ba-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
    animation: hintPulse 2s ease-in-out infinite;
    white-space: nowrap;
}

.ba-hint.hidden {
    opacity: 0;
    visibility: hidden;
    animation: none;
}

.ba-hint-arrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0;
}

.ba-slider-wrapper {
    position: relative;
}

/* Before/After Slider - Grayscale effect on before images */
img-comparison-slider img[slot="before"] {
    filter: grayscale(40%) saturate(90%);
}

/* Preview Sections */
.preview-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.section-header .header-logo {
    height: 64px;
    width: auto;
    opacity: 0.8;
    flex-shrink: 0;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-light);
    margin: 0;
    position: relative;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #c9a84c;
    border-radius: 2px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.preview-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-width: 0;
}

.preview-column__cta {
    text-align: center;
}

.preview-grid img-comparison-slider {
    border-radius: 4px;
    width: 100%;
    overflow: hidden;
    align-items: center;
}

.preview-grid img-comparison-slider img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.preview-grid .ba-slider-wrapper {
    position: relative;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gallery-preview-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-slideshow {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #c9a84c;
    width: 0%;
    z-index: 10;
}

@media (min-width: 768px) {
    .gallery-slideshow {
        height: 380px;
    }

    .preview-grid img-comparison-slider img {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .preview-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header .header-logo {
        height: 56px;
    }

    .ba-hint {
        /* Keep hint centered on mobile, same as desktop */
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        font-size: 0.75rem;
        padding: 8px 12px;
        animation: hintPulse 2s ease-in-out infinite;
        white-space: normal;
        max-width: calc(100% - 24px);
        text-align: center;
        line-height: 1.3;
    }

    .preview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .preview-column {
        gap: var(--spacing-md);
    }

    .gallery-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-preview-grid img {
        height: 80px;
    }
}

/* Pulse animation for hint text */
@keyframes hintPulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.03);
    }
}

@keyframes hintPulseBottom {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%);
    }
    50% {
        opacity: 0.75;
        transform: translateX(-50%) scale(1.02);
    }
}

.ba-hint-top {
    position: absolute;
    top: 12px;
    right: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.ba-hint-top--label {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.ba-hint-top.visible {
    opacity: 1;
}
