/* Custom styles for SAMANCOR website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography refinements */
body {
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles */
*:focus {
    outline: none;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Selection */
::selection {
    background-color: #111827;
    color: #ffffff;
}

/* Mobile menu animation */
#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

/* Form input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

/* Button hover states */
a[href],
button {
    transition: all 0.2s ease;
}

/* Prevent layout shift on image load */
img {
    max-width: 100%;
    height: auto;
}

/* Link styles */
a {
    text-decoration: none;
}

/* Responsive container adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Better spacing on mobile */
    h1 {
        line-height: 1.1;
    }
    
    /* Touch-friendly targets */
    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

