body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #1a1a1a;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    padding-top: 52px;
}

@media (min-width: 768px) {
    body {
        padding-top: 60px;
    }
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
}

.nav-blur {
    backdrop-filter: blur(15px);
    background: rgba(255,255,255,0.9);
}

.crisp-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
    background-color: #f7f7f7; 
}

.img-hover {
    overflow: hidden;
    background-color: #f7f7f7;
    position: relative;
    cursor: pointer;
}

.img-hover img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (hover: hover) {
    .img-hover:hover img {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

#mobile-menu {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}        
#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

#lightbox {
    transition: opacity 0.4s ease;
}
#lightbox img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.95);
}
#lightbox.active img {
    transform: scale(1);
}

.testimonial-slide {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-slide.hidden {
    display: none;
    opacity: 0;
    transform: translateX(10px);
}
.testimonial-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.dot {
    transition: all 0.3s ease;
    cursor: pointer;
}
.dot.active {
    background-color: #000;
    width: 1.5rem;
}

#testimonial-slider {
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

.ticker-wrapper {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll 35s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-textured-text {
    background: linear-gradient(to bottom, #ffffff, #dcdcdc),
                url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

/* Dropdown Navigation */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: -20px; /* extends hover area down to the menu */
}

.nav-dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    z-index: 200;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

.nav-item-dropdown:hover .nav-dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content a {
    color: #666;
    padding: 12px 24px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-dropdown-content a:hover {
    color: #000;
}

/* Masonry Layout */
.masonry-grid {
    column-count: 2;
    column-gap: 1rem; /* 16px */
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 3;
        column-gap: 1.5rem; /* 24px */
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 4;
        column-gap: 1.5rem; /* 24px */
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem; /* 16px */
}

@media (min-width: 768px) {
    .masonry-item {
        margin-bottom: 1.5rem; /* 24px */
    }
}
