/* ==========================================================================
   Platinum Arquitectura — Haute Architectural Monograph Design System
   Montserrat Typography • Brand Blue (#2E4A6D) • Minimalist & Responsive
   ========================================================================== */

@layer base {
    html, body {
        margin: 0;
        padding: 0;
        scroll-behavior: smooth;
        font-family: 'Montserrat', sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Justified Text Alignment for Editorial Copy */
main p,
footer .max-w-sm {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Preserve centered or specific alignments on micro-labels, badges, and centered headers */
.text-center p,
p.text-center,
#lightbox-caption,
.form-status-box p {
    text-align: center !important;
}

/* Minimalist Navbar Links with Animated Underline */
.nav-link-minimal {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}
.nav-link-minimal::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background-color: #2E4A6D;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-minimal:hover::after,
.nav-link-minimal[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Smooth Hover Elevation for All Buttons and Interactive CTAs */
button,
a[class*="bg-[#2E4A6D]"],
a[class*="bg-primary"],
a[class*="bg-emerald-"],
a[class*="border-"] {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover:not(:disabled),
a[class*="bg-[#2E4A6D]"]:hover,
a[class*="bg-primary"]:hover,
a[class*="bg-emerald-"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(46, 74, 109, 0.35);
}

button:active:not(:disabled),
a[class*="bg-[#2E4A6D]"]:active,
a[class*="bg-primary"]:active {
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #FAF9F6;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2E4A6D;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Subtle Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Lightbox / Image Zoom */
#lightbox {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#lightbox-img {
    max-height: 86vh;
    max-width: 92vw;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

/* Floating WhatsApp Pill Button */
.whatsapp-float-pill {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.whatsapp-float-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -6px rgba(46, 74, 109, 0.28);
}

@media (max-width: 640px) {
    .whatsapp-float-pill {
        bottom: 16px;
        right: 16px;
    }
}
