/* ============================================
   ProDomeSpaces Minisite — Custom Styles
   Supplements Tailwind CDN utilities
   ============================================ */

/* --- CSS Variables (fallback for non-Tailwind contexts) --- */
:root {
    --color-primary: #187192;
    --color-primary-dark: #126380;
    --color-primary-light: #6EC1E4;
    --color-accent: #61CE70;
    --color-royal: #4054B2;
    --color-dark: #1A1919;
    --color-light: #FAFAFA;
    --font-heading: 'Lexend Deca', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --nav-height: 5rem;
}

/* --- Scroll offset for fixed nav --- */
html {
    scroll-padding-top: var(--nav-height);
}

@media (max-width: 768px) {
    :root {
        --nav-height: 4rem;
    }
}

/* --- Nav shadow on scroll --- */
#main-nav.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* --- Active nav link --- */
.nav-link.active {
    color: var(--color-primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

/* --- Mobile nav link active --- */
.mobile-nav-link.active {
    color: var(--color-primary);
    background: rgba(24, 113, 146, 0.05);
}

/* --- Scroll-triggered animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for cards */
.animate-on-scroll[style*="animation-delay: 0.1s"] {
    transition-delay: 0.1s;
}

.animate-on-scroll[style*="animation-delay: 0.2s"] {
    transition-delay: 0.2s;
}

/* --- Hero section --- */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll; /* fix iOS parallax issues */
    }
}

/* --- Hero geometric pattern pulse --- */
@keyframes subtle-drift {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.14; }
}

#hero > div:nth-child(2) {
    animation: subtle-drift 8s ease-in-out infinite;
}

/* --- Card hover lift --- */
.group:hover {
    transform: translateY(-4px);
}

/* --- Gradient callout glow --- */
section#event-domes .bg-gradient-to-r {
    position: relative;
}

section#event-domes .bg-gradient-to-r::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-royal));
    border-radius: inherit;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.3;
}

/* --- Project card image placeholder hover --- */
#projects .group:hover .aspect-video {
    background-size: 110%;
    transition: background-size 0.5s ease;
}

/* --- Stats counter subtle glow --- */
#projects [data-editable*="stat"] {
    text-shadow: 0 0 30px rgba(110, 193, 228, 0.2);
}

/* --- Contact form focus states --- */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(24, 113, 146, 0.15);
}

/* --- Contact form button hover --- */
#contact-form button[type="submit"]:hover {
    box-shadow: 0 4px 14px rgba(24, 113, 146, 0.3);
}

/* --- Form submission success state --- */
#contact-form.submitted {
    opacity: 0.6;
    pointer-events: none;
}

/* --- About section fact cards --- */
#about .bg-white\/5:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* --- Footer --- */
footer a:hover {
    color: var(--color-primary-light);
}

/* --- Smooth scrollbar (webkit) --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* --- Selection color --- */
::selection {
    background: rgba(24, 113, 146, 0.2);
    color: var(--color-dark);
}

/* --- CMS editable field indicator (only active in edit mode) --- */
[data-editable].editable-active {
    outline: 2px dashed var(--color-primary);
    outline-offset: 4px;
    cursor: text;
    min-height: 1em;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(24, 113, 146, 0.03);
}

[data-editable].editable-active:focus {
    outline-color: var(--color-accent);
    background: rgba(97, 206, 112, 0.05);
}

/* --- Media logo row --- */
#projects .font-heading.font-semibold.text-lg {
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* --- Print styles --- */
@media print {
    #main-nav,
    .animate-bounce,
    #contact-form button {
        display: none;
    }

    section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body {
        color: #000;
        background: #fff;
    }
}
