/*
Theme Name: SVAS Theme
Theme URI: https://sunvalleypets.org
Author: Sam Bates
Author URI: https://sunvalleypets.org
Description: Custom theme for Sun Valley Animal Shelter - built from HTML/CSS mockups with Tailwind CSS
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: svas-theme
*/

/* ============================================
   CUSTOM CSS - Animations, Gradients, Effects
   ============================================ */

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .nav-link {
    font-family: 'Quicksand', sans-serif;
}

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(74, 203, 188, 0.85) 0%, rgba(124, 58, 237, 0.75) 100%);
}

/* Card hover effects */
.pet-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 203, 188, 0.25);
}

/* Action card styling */
.action-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.action-card:hover::before {
    left: 100%;
}
.action-card:hover {
    transform: scale(1.02);
}

/* Paw print background decoration */
.paw-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%234acbbc' fill-opacity='0.05' d='M30 35c-2.5 0-4.5 3-4.5 6s2 5 4.5 5 4.5-2 4.5-5-2-6-4.5-6zm-10-8c-1.5 0-3 2-3 4s1 3 3 3 3-1 3-3-1.5-4-3-4zm20 0c-1.5 0-3 2-3 4s1.5 3 3 3 3-1 3-3-1.5-4-3-4zm-15-5c-1.5 0-3 2-3 4s1.5 3 3 3 3-1 3-3-1.5-4-3-4zm10 0c-1.5 0-3 2-3 4s1.5 3 3 3 3-1 3-3-1.5-4-3-4z'/%3E%3C/svg%3E");
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #4acbbc 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scroll + prevent horizontal overflow on mobile Safari */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION - explicit styles (Tailwind-independent)
   ============================================ */

/* Force-hide desktop nav on mobile (independent of Tailwind CDN) */
@media (max-width: 1023px) {
    .svas-main-nav {
        display: none !important;
    }
}

/* Nav container: horizontal flex layout (lg+ only) */
@media (min-width: 1024px) {
    .svas-main-nav {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }
}

/* Kill all list styling inside nav */
.svas-main-nav ul,
.svas-main-nav li,
nav ul,
nav ol,
nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top-level menu items: inline row */
.svas-main-nav > .nav-item,
.svas-main-nav > a,
.svas-main-nav > li {
    position: relative;
    white-space: nowrap;
}

/* Sub-menus and dropdowns: hidden by default */
.nav-dropdown,
.svas-main-nav ul ul,
.svas-main-nav li > ul,
.svas-main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 0.5rem;
    border: 1px solid #f3f4f6;
    padding: 0.5rem 0;
    min-width: 12rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

/* Show dropdown on hover */
.nav-item:hover > .nav-dropdown,
.svas-main-nav li:hover > ul,
.svas-main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items: vertical stack */
.nav-dropdown a,
.svas-main-nav .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown a:hover,
.svas-main-nav .sub-menu a:hover {
    background: #e6faf8;
    color: #2d9a8d;
}

/* Photo gallery float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Stats counter styling */
.stat-number {
    background: linear-gradient(135deg, #4acbbc 0%, #3bb8a9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* WordPress specific overrides */
.wp-block-group,
.wp-block-columns {
    max-width: none;
}

/* Ensure content fits properly */
.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Hero pet widget — hide Petfinder chrome, show full pet image */
.hero-pet-widget {
    position: relative;
    overflow: hidden;
}

.hero-pet-widget pet-scroller {
    display: block;
    margin-top: -60px;  /* shift up to hide Petfinder header/branding */
    margin-bottom: -20px; /* reclaim Petfinder footer padding */
}

/* Fade-out mask at top to cleanly hide any Petfinder branding remnants */
.hero-pet-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, white, transparent);
    z-index: 2;
    pointer-events: none;
}
