/* Unico Housing Finance - CSS Reset and Base Styles */

/* Box sizing for all elements */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Document base */
html {
    font-size: 62.5%; /* 10px = 1rem for easier calculations */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #333;
    background-color: #f9fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #132C5B;
}

p {
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: #1A4BBF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0E2E7D;
}

/* Lists */
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Images and media */
img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elements */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Remove autofill background color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Focus styles */
:focus {
    outline: 3px solid rgba(26, 75, 191, 0.2);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Clear fix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive utilities */
@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 55%;
    }
}

/* Print styles */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
} 