/* Custom Styles for Oxon Builders Ltd */

/* General Body and Typography */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Navbar */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #2BADFE !important;
}

h1 {
    font-weight: bold;
    color: #4e6d8b;
    text-decoration: underline;
    text-underline-position: below;
    text-underline-offset: calc(0.25em);
}

/* Page Headers */
h2, h3 {
    font-weight: 600;
    color: #2c3e50;
}

.text-info {
    color: #2BADFE !important;
}

/* Forms */
.form-control {
    border-radius: 0.375rem;
    align-self: center;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    color: #333;
    text-align: start;
}

.form-control:focus {
    border-color: #598eaf;
    box-shadow: 0 0 0 0.2rem rgba(43, 173, 254, 0.25);
}

.btn-primary {
    background-color: #2BADFE;
    border-color: #2BADFE;
    border-radius: 0.375rem;
    font-size: large;
    color: #ffffff;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #1a8cff;
    border-color: #1a8cff;
    font-size: large;
    color: #ffffff;
    font-weight: bold;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    border-radius: 0.375rem;
    font-size: large;
    color: #ffffff;
    font-weight: bold;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Form Validation */
.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
}


/* Tables */
table {
    font-size: 14px;
    background-color: #ffffff;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    color: black;

}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e9ecef;
}

/* Cards and Blocks */
.clean-block {
    padding: 60px 0;
}

.clean-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 100%;
    width: auto;
    margin: 0 auto;
}

.block-heading {
    text-align: center;
    margin-bottom: 40px;
}

.block-heading h2 {
    margin-bottom: 10px;
}

.block-heading p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Footer */
.page-footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 20px 0;
}

.footer-copyright p {
    margin: 0;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .clean-form {
        padding: 20px;
        margin: 20px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.d-block {
    display: block;
}

.w-100 {
    width: 100%;
}

/* Custom Colors */
.bg-light-blue {
    background-color: #e3f2fd;
}

.text-light-blue {
    color: #2BADFE;
}

.clean-block.clean-hero {
    text-align: inherit;
}

.container {
    padding-left: 0px;
    padding-right: 0px;
}

/* Menu Styles */
.menu-link {
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.menu-link:hover {
    color: #2BADFE !important;
    text-decoration: none;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0.375rem;
}

.menu-dropdown-item {
    color: #333;
    font-size: 14px;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

.menu-dropdown-item:hover {
   
    color: #2BADFE;
}

/* Dropdown on hover */
.dropdown:hover > .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* Optional: remove the tiny gap between toggle and menu */
.navbar .dropdown-menu {
    margin-top: 0;      /* Bootstrap often adds a small margin */
}

.navbar .dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;          /* bridge height */
    left: 0;
    right: 0;
    height: 8px;
}