/* ===== CUSTOM STYLES FOR ITALIAN RIVIERA CLUB ===== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background: #b92548;
    color: #FFF8F0;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #821a34;
    color: #FFF8F0;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #821a34;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #9c1c3b;
    border-color: #9c1c3b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 26, 52, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #FFF8F0;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 248, 240, 0.4);
    letter-spacing: 0.01em;
}

.btn-outline:hover {
    border-color: #FFF8F0;
    background: rgba(255, 248, 240, 0.1);
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff80a3;
    color: #3a0a15;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ff80a3;
    letter-spacing: 0.01em;
}

.btn-accent:hover {
    background: #ffb4c8;
    border-color: #ffb4c8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 128, 163, 0.4);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #FFF8F0;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 248, 240, 0.5);
    letter-spacing: 0.01em;
}

.btn-outline-light:hover {
    background: rgba(255, 248, 240, 0.15);
    border-color: #FFF8F0;
    transform: translateY(-2px);
}

/* --- Nav --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b92548;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(130, 26, 52, 0.08);
}

#navbar.scrolled .nav-link {
    color: #6e182e;
}

#navbar.scrolled .nav-link::after {
    background: #b92548;
}

#navbar.scrolled .font-display {
    color: #6e182e;
}

#navbar.scrolled .font-display span {
    color: #b92548;
}

#navbar.scrolled .w-9 {
    background: #b92548;
}

#navbar.scrolled .w-9 span {
    color: #FFF8F0;
}

/* --- Mobile Menu --- */
.mobile-link {
    transition: all 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.hamburger-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* --- Geometric Shapes --- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(185, 37, 72, 0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 128, 163, 0.2) 0%, transparent 70%);
    bottom: 50px;
    left: 10%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle--cta1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 128, 163, 0.15) 0%, transparent 70%);
    top: -150px;
    left: -100px;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-circle--cta2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 180, 200, 0.12) 0%, transparent 70%);
    bottom: -80px;
    right: 5%;
    animation: float-slow 12s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle--1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 128, 163, 0.12);
    top: 20%;
    left: 5%;
    transform: rotate(15deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle--cta {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 69px solid rgba(255, 180, 200, 0.1);
    bottom: 15%;
    right: 8%;
    transform: rotate(-20deg);
    animation: spin-slow 25s linear infinite reverse;
}

.geo-dots {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(255, 200, 210, 0.3) 2px, transparent 2px);
    background-size: 16px 16px;
    pointer-events: none;
    animation: float-slow 10s ease-in-out infinite;
}

/* --- Menu Cards --- */
.menu-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(110, 24, 46, 0.06);
    border: 1px solid rgba(110, 24, 46, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(110, 24, 46, 0.12);
    border-color: rgba(185, 37, 72, 0.15);
}

/* --- Visit Cards --- */
.visit-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(58, 10, 21, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- Animations --- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 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; }
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #b92548;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 250px;
        height: 250px;
    }

    .geo-circle--2 {
        width: 150px;
        height: 150px;
    }

    .geo-triangle--1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(255, 128, 163, 0.12);
    }
}
