body {
    font-family: 'Lato', sans-serif;
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    text-decoration: none;
    will-change: transform, box-shadow;
    letter-spacing: 0.02em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Primary Button (Green) */
.btn-primary {
    background-color: #5E876B;
    color: white;
}

.btn-primary:hover {
    background-color: #4A6D56;
}

/* White Button */
.btn-white {
    background-color: white;
    color: #5E876B;
}

.btn-white:hover {
    background-color: #F9FAFB;
    color: #4A6D56;
}

/* Outline Button (White) */
.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: #5E876B;
}

/* Outline Button (Primary) */
.btn-outline-primary {
    background-color: transparent;
    border: 2px solid #5E876B;
    color: #5E876B;
}

.btn-outline-primary:hover {
    background-color: #5E876B;
    color: white;
}

/* Small Button (for Nav) */
.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

/* Text Link with Arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #5E876B;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.link-arrow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #5E876B;
    transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.link-arrow:hover::after {
    width: calc(100% - 1.5rem);
}

.link-arrow:hover {
    color: #4A6D56;
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

.link-arrow svg {
    margin-left: 0.5rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(40px) scale(0.98);
}

.reveal-left {
    transform: translateX(-40px) scale(0.98);
}

.reveal-right {
    transform: translateX(40px) scale(0.98);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F9FAFB;
}

::-webkit-scrollbar-thumb {
    background: #5E876B;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2F4F3F;
}

/* Navigation Underline Hover (Refined) */
.nav-link {
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #5E876B;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link-active::after {
    width: 100%;
}

/* Side Drawer Backdrop Blur */
.backdrop-blur-custom {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Footer Link Consistency */
.footer-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer-link:hover {
    color: white;
    transform: translateY(-2px);
}

/* Mobile Nav link consistency */
.mobile-nav-link {
    transition: all 0.2s ease;
}

.mobile-nav-link:active {
    transform: scale(0.97);
    opacity: 0.7;
}

/* Entrance Animation for Hero */
@keyframes fadeUpScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-up {
    animation: fadeUpScale 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.stagger-1 {
    animation-delay: 0.15s;
}

.stagger-2 {
    animation-delay: 0.3s;
}

.stagger-3 {
    animation-delay: 0.45s;
}

/* Checklist Item Hover & Animation */
.checklist-item {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.checklist-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(94, 135, 107, 0.1);
    background-color: #F0F4F1;
    /* Very light primary tint */
}

/* Checkmark Drawing Effect */
.checkmark-svg {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    transition: stroke-dashoffset 0.6s ease-out;
    transition-delay: inherit;
}

.visible .checkmark-svg {
    stroke-dashoffset: 0;
}

/* Staggered delays for long lists */
.stagger-4 {
    animation-delay: 0.6s;
}

.stagger-5 {
    animation-delay: 0.75s;
}

.stagger-6 {
    animation-delay: 0.9s;
}

/* Process Journey - Step Cards */
.process-journey {
    position: relative;
}

/* Connecting dashed line on desktop */
@media (min-width: 768px) {
    .process-journey::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        height: 2px;
        background-image: linear-gradient(to right, rgba(94, 135, 107, 0.2) 33%, rgba(255, 255, 255, 0) 0%);
        background-position: bottom;
        background-size: 15px 2px;
        background-repeat: repeat-x;
        z-index: 0;
        pointer-events: none;
    }
}

.step-card {
    position: relative;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    will-change: transform, box-shadow;
}

.step-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    background-color: white;
    border-color: rgba(94, 135, 107, 0.1);
}

/* Floating accent line on hover */
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #5E876B;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 0 0 3px 3px;
    opacity: 0;
}

.step-card:hover::before {
    width: 40%;
    opacity: 1;
}

.step-number {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step-card:hover .step-number {
    transform: scale(1.15) translateY(-5px);
    background-color: #4A6D56;
    box-shadow: 0 10px 15px -3px rgba(94, 135, 107, 0.3);
}

/* Values Section Enhancements */
.value-card {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    will-change: transform, box-shadow;
}

.value-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    background-color: white;
    border-color: rgba(94, 135, 107, 0.1);
}

.value-image-wrapper {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 4px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.value-card:hover .value-image-wrapper {
    transform: scale(1.1);
    border-color: rgba(94, 135, 107, 0.2);
    box-shadow: 0 10px 15px -3px rgba(94, 135, 107, 0.2);
}

.value-image-wrapper img {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.value-card:hover .value-image-wrapper img {
    transform: scale(1.08);
}

/* Premium Primary Depth */
.btn-primary,
.bg-primary {
    background-image: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.bg-primary-premium {
    background-color: #5E876B;
    background-image: radial-gradient(circle at 120% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 0% 120%, rgba(0, 0, 0, 0.05) 0%, transparent 60%);
}

/* Authority Badges */
.trust-badge {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
}

.trust-badge:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: #f0f4f1;
    border-color: rgba(94, 135, 107, 0.3);
    box-shadow: 0 10px 15px -3px rgba(94, 135, 107, 0.1);
}

/* Refined Table Styling */
.table-premium {
    border-collapse: separate;
    border-spacing: 0;
}

.table-premium tr td {
    transition: background-color 0.3s ease;
}

.table-premium tr:hover td {
    background-color: rgba(94, 135, 107, 0.02);
}

/* Accreditation Link Styling */
.accreditation-link {
    color: #5E876B;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.accreditation-link:hover {
    color: #2F4F3F;
    text-decoration-thickness: 2px;
}