/* ===================== FONT SETUP ===================== */
body {
    font-family: 'DM Sans', sans-serif;
    scroll-behavior: smooth;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6,
.font-black, .font-extrabold {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* ===================== CSS VARIABLES ===================== */
:root {
    --color-primary: hsl(158, 88%, 40%);
    --color-primary-foreground: hsl(0, 0%, 100%);
    --color-secondary: hsl(208, 80%, 51%);
    --color-secondary-foreground: hsl(0, 0%, 100%);
}

/* ===================== SELECTION COLOR ===================== */
::selection {
    background: rgba(13, 190, 126, 0.18);
    color: inherit;
}
::-moz-selection {
    background: rgba(13, 190, 126, 0.18);
    color: inherit;
}

/* ===================== FOCUS VISIBLE ===================== */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===================== KEYFRAME ANIMATIONS ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50%       { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

@keyframes heroSlide {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

@keyframes numberPop {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); max-height: 0; padding-top: 0; padding-bottom: 0; }
    to   { opacity: 1; transform: translateY(0); max-height: 500px; }
}

@keyframes kbZoomTopLeft {
    from { transform: scale(1.18) translate(3%, 3%); }
    to   { transform: scale(1.0)  translate(0%, 0%); }
}
@keyframes kbZoomTopRight {
    from { transform: scale(1.18) translate(-3%, 3%); }
    to   { transform: scale(1.0)  translate(0%, 0%); }
}
@keyframes kbZoomBottomLeft {
    from { transform: scale(1.18) translate(3%, -3%); }
    to   { transform: scale(1.0)  translate(0%, 0%); }
}
@keyframes kbZoomBottomRight {
    from { transform: scale(1.18) translate(-3%, -3%); }
    to   { transform: scale(1.0)  translate(0%, 0%); }
}
@keyframes kbZoomCenter {
    from { transform: scale(1.2); }
    to   { transform: scale(1.0); }
}
@keyframes kbPanLeft {
    from { transform: scale(1.12) translateX(4%); }
    to   { transform: scale(1.05) translateX(-2%); }
}
@keyframes kbPanRight {
    from { transform: scale(1.12) translateX(-4%); }
    to   { transform: scale(1.05) translateX(2%); }
}
@keyframes sliderFadeIn {
    from { opacity: 0; transform: scale(1.04); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes sliderFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes slideContentIn {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================== SCROLL ANIMATION CLASSES ===================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-from-left {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-from-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.animate-from-right {
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-from-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.animate-scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 640px) {
    .animate-on-scroll    { transform: translateY(16px); }
    .animate-from-left    { transform: translateX(-20px); }
    .animate-from-right   { transform: translateX(20px); }
    .animate-scale-in     { transform: scale(0.96); }
}

/* Stagger delays */
.delay-50  { transition-delay: 0.05s; }
.delay-100 { transition-delay: 0.10s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.20s; }
.delay-300 { transition-delay: 0.30s; }
.delay-400 { transition-delay: 0.40s; }
.delay-500 { transition-delay: 0.50s; }
.delay-600 { transition-delay: 0.60s; }
.delay-700 { transition-delay: 0.70s; }
.delay-800 { transition-delay: 0.80s; }
.delay-900 { transition-delay: 0.90s; }

/* ===================== HERO ANIMATIONS ===================== */
.hero-badge {
    animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.hero-title {
    animation: heroSlide 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-sub {
    animation: fadeInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero-ctas {
    animation: fadeInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

/* ===================== FLOATING WHATSAPP ===================== */
.whatsapp-float {
    animation: pulseGlow 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
    animation: none;
    transform: scale(1.12) translateY(-3px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== PAGE TRANSITIONS ===================== */
.page-enter {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ===================== CARD HOVERS ===================== */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px -8px rgba(13, 190, 126, 0.16),
                0 6px 16px -4px rgba(0, 0, 0, 0.08);
}

/* Premium glow card */
.card-glow {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}
.card-glow::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(13,190,126,0.3), transparent 50%, rgba(13,190,126,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.card-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(13, 190, 126, 0.22);
}
.card-glow:hover::before {
    opacity: 1;
}

/* ===================== NAVBAR ===================== */
.navbar-scrolled {
    box-shadow: 0 4px 24px -4px rgba(0,0,0,0.10);
}
.navbar-scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13,190,126,0.25) 30%, rgba(13,190,126,0.35) 50%, rgba(13,190,126,0.25) 70%, transparent);
    pointer-events: none;
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu-enter {
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ===================== GRADIENT TEXT ===================== */
.text-gradient {
    background: linear-gradient(135deg, #0DBE7E 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-green {
    background: linear-gradient(135deg, #0DBE7E 0%, #10d97e 60%, #0DBE7E 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* ===================== FLOATING ICON ===================== */
.icon-float {
    animation: float 3.5s ease-in-out infinite;
}

/* ===================== STATS STRIP ===================== */
.stat-item {
    transition: transform 0.3s ease;
}
.stat-item:hover {
    transform: scale(1.05);
}

/* ===================== FAQ ACCORDION ===================== */
.faq-answer {
    animation: faqOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ===================== SECTION LABEL BADGE ===================== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(13,190,126,0.12), rgba(13,190,126,0.06));
    color: #0DBE7E;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    border: 1px solid rgba(13,190,126,0.2);
    letter-spacing: 0.01em;
}

/* ===================== NUMBER POP ANIMATION ===================== */
.number-pop {
    animation: numberPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ===================== SUBTLE DOT PATTERN ===================== */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(13,190,126,0.12) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ===================== SECTION DIVIDER ===================== */
.section-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #0DBE7E, rgba(13,190,126,0.2));
    border-radius: 9999px;
    margin: 0.75rem auto 0;
}

/* ===================== IMAGE HOVER ZOOM ===================== */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
    transform: scale(1.06);
}

/* ===================== HERO SLIDER ===================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    height: calc(100svh - 72px);
    max-height: 900px;
}
@media (max-width: 640px) {
    .hero-slider {
        min-height: 520px;
        height: calc(100svh - 56px);
        max-height: 700px;
    }
}

/* ===================== MOBILE-SPECIFIC HELPERS ===================== */
@media (max-width: 640px) {
    .mobile-full {
        width: 100% !important;
        flex-direction: column !important;
    }
    .mobile-text-center {
        text-align: center !important;
    }
    .section-py {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-from-left,
    .animate-from-right,
    .animate-scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-badge, .hero-title, .hero-sub, .hero-ctas {
        animation: none;
        opacity: 1;
    }
    .icon-float,
    .whatsapp-float,
    .stat-item {
        animation: none;
    }
}

/* ===================== CUSTOM CARD STYLES ===================== */
.medimart-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* ===================== SCROLLBAR HIDE ===================== */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ===================== BUTTON BASE ===================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    transition: all 0.2s;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(13, 190, 126, 0.4);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    background-color: #25D366;
    color: white;
    transition: all 0.2s;
}
.btn-whatsapp:hover {
    background-color: #1EBE5C;
    transform: translateY(-2px);
}

/* ===================== FORM STYLES ===================== */
.medimart-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: #f9fafb;
    transition: all 0.2s;
}
.medimart-input:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}
.medimart-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 190, 126, 0.1);
    background: white;
}
.medimart-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}
.medimart-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: #f9fafb;
    transition: all 0.2s;
    resize: none;
    min-height: 120px;
}
.medimart-textarea:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}
.medimart-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 190, 126, 0.1);
    background: white;
}

/* ===================== SMOOTH PAGE LOAD ===================== */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body {
    animation: pageFadeIn 0.35s ease both;
}
