/* ========================================
   UMIYA AGRO SOLVEX - DESIGN SYSTEM
   ======================================== */

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1c1917;
    /* stone-900 */
    background-color: #fafaf9;
    /* stone-50 */
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

/* Display Headings - For Hero Sections */
.text-display-xl {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    /* 72px */
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-display-lg {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.75rem;
    /* 60px */
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-display-md {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    /* 48px */
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Headings */
.text-h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    /* 40px */
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    /* 32px */
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.text-h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    /* 24px */
    line-height: 1.3;
    font-weight: 600;
}

.text-h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    /* 20px */
    line-height: 1.4;
    font-weight: 600;
}

.text-h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.4;
    font-weight: 600;
}

/* Body Text */
.text-body-xl {
    font-size: 1.25rem;
    /* 20px */
    line-height: 1.7;
    font-weight: 400;
}

.text-body-lg {
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.7;
    font-weight: 400;
}

.text-body-base {
    font-size: 1rem;
    /* 16px */
    line-height: 1.6;
    font-weight: 400;
}

.text-body-sm {
    font-size: 0.875rem;
    /* 14px */
    line-height: 1.6;
    font-weight: 400;
}

.text-body-xs {
    font-size: 0.75rem;
    /* 12px */
    line-height: 1.5;
    font-weight: 400;
}

/* Labels & Captions */
.text-label-lg {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    /* 14px */
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-label-base {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    /* 12px */
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.text-label-sm {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.625rem;
    /* 10px */
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.text-caption {
    font-size: 0.75rem;
    /* 12px */
    line-height: 1.5;
    font-weight: 400;
    color: #78716c;
    /* stone-500 */
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .text-display-xl {
        font-size: 2.5rem;
        /* 40px */
    }

    .text-display-lg {
        font-size: 2.25rem;
        /* 36px */
    }

    .text-display-md {
        font-size: 2rem;
        /* 32px */
    }

    .text-h1 {
        font-size: 1.875rem;
        /* 30px */
    }

    .text-h2 {
        font-size: 1.5rem;
        /* 24px */
    }

    .text-h3 {
        font-size: 1.25rem;
        /* 20px */
    }

    .text-body-xl {
        font-size: 1.125rem;
        /* 18px */
    }

    .text-body-lg {
        font-size: 1rem;
        /* 16px */
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .text-display-xl {
        font-size: 3.5rem;
        /* 56px */
    }

    .text-display-lg {
        font-size: 3rem;
        /* 48px */
    }

    .text-display-md {
        font-size: 2.5rem;
        /* 40px */
    }
}

/* ========================================
   CUSTOM ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ========================================
   SELECTION STYLES
   ======================================== */

::selection {
    background-color: #f0f7e6;
    /* Light brand-green tint */
    color: #5e2b0e;
    /* brand-brown */
}

::-moz-selection {
    background-color: #f0f7e6;
    color: #5e2b0e;
}

/* ========================================
   SCROLLBAR STYLES
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
    /* stone-100 */
}

::-webkit-scrollbar-thumb {
    background: #6fa82a;
    /* brand-green */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5e2b0e;
    /* brand-brown */
}

/* ========================================
   LOGO SIZING
   ======================================== */

.logo-mobile {
    width: 14rem;
}

.md\:mx-0 {
    margin-top: 130px;
}

@media (min-width: 768px) {
    .md\:w-40 {
        width: 15rem;
    }

    .md\:mx-0 {
        margin-top: 130px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* ========================================
   FOCUS STYLES FOR ACCESSIBILITY
   ======================================== */

*:focus-visible {
    outline: 2px solid #5e2b0e;
    outline-offset: 2px;
    border-radius: 4px;
}