/* ============================================
   HCS Wildlife Management — Shared Styles
   ============================================ */

/* Base */
html { scroll-behavior: smooth; }
::selection { background: #2C4A2E; color: #FAFAF7; }

/* Decorative */
.blob-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.leaf-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 C35 15, 40 20, 30 35 C20 20, 25 15, 30 5Z' fill='%232C4A2E' opacity='0.03'/%3E%3C/svg%3E");
}

/* Scroll-reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { 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; }

/* Hero text animation */
.hero-text-reveal {
    overflow: hidden;
}
.hero-text-reveal > span {
    display: inline-block;
    transform: translateY(110%);
    animation: textUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-text-reveal:nth-child(2) > span { animation-delay: 0.12s; }
.hero-text-reveal:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes textUp { to { transform: translateY(0); } }

/* Navigation */
.nav-scrolled {
    background: rgba(250, 250, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(42, 36, 32, 0.06);
}

/* Subpage dark nav — light text over dark hero backgrounds */
#navbar.nav-dark a,
#navbar.nav-dark button,
#navbar.nav-dark span,
#navbar.nav-dark i,
#navbar.nav-dark svg {
    transition: color 0.5s ease;
}
#navbar.nav-dark:not(.nav-scrolled) a,
#navbar.nav-dark:not(.nav-scrolled) button,
#navbar.nav-dark:not(.nav-scrolled) span,
#navbar.nav-dark:not(.nav-scrolled) i,
#navbar.nav-dark:not(.nav-scrolled) svg {
    color: rgba(250, 250, 247, 0.85);
}
/* Restore dropdown menu colors (has its own light background) */
#navbar.nav-dark:not(.nav-scrolled) .nav-dropdown a {
    color: rgba(42, 36, 32, 0.7);
}
#navbar.nav-dark:not(.nav-scrolled) .nav-dropdown a:hover {
    color: #2C4A2E;
}
#navbar.nav-dark:not(.nav-scrolled) .nav-dropdown a.text-forest {
    color: #2C4A2E;
}

/* Desktop dropdown */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(4px);
}
.nav-dropdown-trigger:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Mobile menu */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
    transform: translateY(0);
}

/* Service cards */
.program-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(44, 74, 46, 0.12);
}
.program-card .program-img img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.program-card:hover .program-img img {
    transform: scale(1.06);
}

/* Tier / info cards */
.tier-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.tier-card:hover {
    transform: translateY(-4px);
    border-color: #2C4A2E;
    box-shadow: 0 12px 40px rgba(44, 74, 46, 0.1);
}
.tier-card.featured {
    border-color: #2C4A2E;
    background: #2C4A2E;
    color: #FAFAF7;
}
.tier-card.featured:hover {
    box-shadow: 0 16px 50px rgba(44, 74, 46, 0.25);
}

/* Buttons */
.btn-forest {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: box-shadow 0.3s ease;
}
.btn-forest::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1A2E1C;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-forest:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.btn-forest:hover {
    box-shadow: 0 8px 25px rgba(44, 74, 46, 0.3);
}

.btn-amber {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: box-shadow 0.3s ease;
}
.btn-amber::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #9A7209;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-amber:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.btn-amber:hover {
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.3);
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #2C4A2E, #8A8070, transparent);
}
@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-1px);
    }
}

/* Wave divider */
.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Service page hero */
.service-hero {
    position: relative;
    overflow: hidden;
}
.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='white' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 1;
}

/* Feature cards on service pages */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: #2C4A2E;
    box-shadow: 0 12px 40px rgba(44, 74, 46, 0.1);
}

/* Contact form */
.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #E8E4DC;
    border-radius: 0.75rem;
    background: #FAFAF7;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #2A2420;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #2C4A2E;
    box-shadow: 0 0 0 3px rgba(44, 74, 46, 0.1);
}
.form-input::placeholder {
    color: #8A8070;
}
textarea.form-input {
    resize: vertical;
    min-height: 140px;
}
