/* ========================================
   Guardianship Services of Kentucky
   Custom Styles
======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* --- Navbar --- */
.nav-logo-text {
    color: #1f2937;
}

.nav-logo-sub {
    color: #9f1530;
}

.nav-scrolled .nav-logo-text {
    color: #1f2937;
}

.nav-scrolled .nav-logo-sub {
    color: #9f1530;
}

#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(159, 21, 48, 0.08);
}

/* --- Mobile Menu --- */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-line {
    transition: all 0.3s ease;
}

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

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* --- Floating Shapes --- */
.floating-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.shape-circle-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 116, 150, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    right: 5%;
    animation: float1 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(159, 21, 48, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 30%;
    left: 3%;
    animation: float2 10s ease-in-out infinite;
}

.shape-square-1 {
    width: 80px;
    height: 80px;
    background: rgba(255, 173, 190, 0.15);
    border-radius: 16px;
    top: 50%;
    left: 8%;
    animation: float3 12s ease-in-out infinite;
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(159, 21, 48, 0.08);
    top: 70%;
    right: 10%;
    animation: float1 9s ease-in-out infinite reverse;
}

.shape-ring {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 116, 150, 0.12);
    border-radius: 50%;
    top: 40%;
    left: 50%;
    animation: float2 11s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(15px); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-25px); }
}

/* --- Hero Floating Cards --- */
.floating-card {
    animation: cardFloat 4s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 2s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9f1530, #ff7496);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* --- Facility Image Cards --- */
.facility-img-card {
    cursor: pointer;
}

.facility-img-card img {
    transition: transform 0.7s ease;
}

.facility-img-card:hover img {
    transform: scale(1.08);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: transform 0.5s ease, background 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.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;
    }
    
    .floating-shape {
        display: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}
