/* ============================================================
   SHARED NAV + FLOATING BUTTON — included by every page
   ============================================================ */

/* ---------- Global smoothness ---------- */
html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    -webkit-font-smoothing: antialiased;
}

/* ---------- Animated gradient background ---------- */
body {
    background-size: 250% 250%;
    animation: gradientDrift 18s ease infinite;
}

@keyframes gradientDrift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- Card hover lift (all pages) ---------- */
.about-section,
.offer-section,
.closing-section,
.section,
.testimonial-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover,
.offer-section:hover,
.section:hover,
.testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.13);
}

/* ---------- Fade-up on load ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.about-section,
.offer-section,
.closing-section,
.section,
.testimonial-box,
.soft-section {
    animation: fadeUp 0.6s ease both;
}

.section:nth-child(2)  { animation-delay: 0.1s; }
.section:nth-child(3)  { animation-delay: 0.2s; }
.testimonial-box:nth-child(2) { animation-delay: 0.1s; }
.testimonial-box:nth-child(3) { animation-delay: 0.2s; }
.testimonial-box:nth-child(4) { animation-delay: 0.3s; }

/* ---------- Floating Sign Up button (bottom-center, all pages) ---------- */
.floating-button {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4f7a5b;
    color: white;
    padding: 16px 28px;
    font-size: 16px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0px 12px 30px rgba(79, 122, 91, 0.4);
    z-index: 1500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.floating-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: autoShine 10s infinite;
}

@keyframes autoShine {
    0%   { left: -75%; }
    8%   { left: 125%; }
    100% { left: 125%; }
}

.floating-button:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0px 18px 40px rgba(79, 122, 91, 0.5);
}

.floating-button:hover::after {
    animation: hoverShine 0.8s forwards;
}

@keyframes hoverShine {
    from { left: -75%; }
    to   { left: 125%; }
}

@media (max-width: 600px) {
    .floating-button {
        bottom: 24px;
        padding: 13px 20px;
        font-size: 14px;
    }
}

/* ---------- Mezzi Rising Drawing decoration ---------- */
.page-decoration {
    display: block;
    height: 90px;
    width: auto;
    margin: 15px auto 10px auto;
    opacity: 0.75;
    mix-blend-mode: multiply;
}

/* ---------- Fixed logo (top-left, all interior pages) ---------- */
.site-logo {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 999;
    text-decoration: none;
}

.site-logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.site-logo img:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

/* ---------- Nav bar ---------- */
.top-nav {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1000;
    background: transparent;
    padding: 0;
    box-shadow: none;
    pointer-events: none;
}

/* ---------- Pill ---------- */
.nav-links {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ---------- Links ---------- */
.nav-links a {
    text-decoration: none;
    color: #4f7a5b;
    font-size: 15px;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 20px;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-links .active {
    color: #c06c84;
    opacity: 1;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .site-logo img {
        height: 52px;
    }

    .nav-links {
        gap: 0;
        padding: 6px 8px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 6px 9px;
    }
}
