/* ============================================
   TROPICAL TANZ AND MORE — Custom Styles
   Premium Dark Luxury | Terracotta + Sand
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(200, 121, 67, 0.3);
    color: #E8D5C0;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
    background: #2E2A26;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C87943;
}

/* --- Floating Card Animations --- */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-0.5deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.3deg); }
}
@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-0.3deg); }
}

.floating-card-1 { animation: float1 5s ease-in-out infinite; }
.floating-card-2 { animation: float2 6s ease-in-out infinite; }
.floating-card-3 { animation: float3 5.5s ease-in-out infinite; }
.floating-card-4 { animation: float4 4.5s ease-in-out infinite; }

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(46, 42, 38, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .logo-icon {
    background: rgba(200, 121, 67, 0.9);
}

/* --- Service Cards --- */
.service-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: rgba(200, 121, 67, 0.4);
}

/* --- Form --- */
select option {
    background: #1C1C1C;
    color: #E8E0D8;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* --- Mobile Menu --- */
.mobile-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(46, 42, 38, 0.5);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* --- Gold shimmer on hover for specific elements --- */
a[href^="tel:"], a[href^="mailto:"] {
    text-decoration: none;
}

/* --- Button focus states --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* --- Mobile responsive adjustments --- */
@media (max-width: 768px) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        display: none;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 span {
        display: inline;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* --- Print styles --- */
@media print {
    body { background: white; color: black; }
    nav, footer, #contactForm, .floating-card-1, .floating-card-2, .floating-card-3, .floating-card-4 { display: none; }
}
