/* ===== Custom Styles for Pinkerton Ranch Trust ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf7f5;
}
::-webkit-scrollbar-thumb {
    background: #f9a9b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec7492;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #74182a;
}

/* ===== Navbar ===== */
#navbar {
    background: rgba(254, 252, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(249, 169, 184, 0.2);
}

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    box-shadow: 0 4px 20px rgba(168, 33, 59, 0.08);
}

/* ===== Hero ===== */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
}

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

/* ===== Approach Cards ===== */
.approach-card {
    opacity: 1;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    opacity: 1;
}

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

/* Ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

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

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

/* ===== Form focus states ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Button ripple effect ===== */
button, a {
    position: relative;
    overflow: hidden;
}

/* ===== Print styles ===== */
@media print {
    #navbar, .floating, [class*="reveal"] {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
