/* Font Family Import - Plus Jakarta Sans for sleek modern typography */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --brand-green: #64AF20;
    --brand-grey: #5F5F5F;
    --brand-blue: #0171BC;
    --brand-dark: #1d1d1f;
    --bg-light: #fbfbfd;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-light);
    color: var(--brand-dark);
}

/* Brand Blue-to-Green Gradient Text */
.text-gradient-brand {
    background: linear-gradient(90deg, #0171BC 0%, #64AF20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body {
    background-color: var(--bg-light);
}

/* Premium Typography Refinements */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
}

/* Subtle Scroll Reveal CSS Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for scroll reveals */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Image zoom & pan effect on hover */
.zoom-container {
    overflow: hidden;
    border-radius: 18px;
}

.zoom-image {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-container:hover .zoom-image {
    transform: scale(1.03);
}

/* Header Navigation Logic - Transparent initially, solid glass background on scroll */
#main-header {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease !important;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Glassmorphism utility */
.glass-nav {
    background-color: rgba(251, 251, 253, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

/* Premium active underline style for header links */
.nav-link {
    position: relative;
    color: var(--brand-dark);
    font-weight: 400;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-blue);
}

/* Custom Accordion transition rules */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.faq-item .faq-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Form submission spinner and transition rules */
.form-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.form-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hide scrollbar for clean filter panel in mobile drawer */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom styles for subtle buttons */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 9999px;
    /* Pill shape */
}

.btn-premium:active {
    transform: scale(0.97);
}

.btn-premium-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium:hover .btn-premium-arrow {
    transform: translateX(4px);
}

/* Utilities for Brand Colors */
.text-brand-green {
    color: var(--brand-green);
}

.text-brand-grey {
    color: var(--brand-grey);
}

.text-brand-blue {
    color: var(--brand-blue);
}

.bg-brand-green {
    background-color: var(--brand-green);
}

.bg-brand-blue {
    background-color: var(--brand-blue);
}