/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&display=swap');

/* Body styling with Commissioner font */
body {
    font-family: "Commissioner", sans-serif;
    font-optical-sizing: auto;
    font-variation-settings:
      "slnt" 0,
      "FLAR" 0,
      "VOLM" 0;
}

/* Font styling utilities */
.font-family-roboto {
    font-family: 'Roboto', sans-serif;
}

.font-family-commissioner {
    font-family: "Commissioner", sans-serif;
    font-optical-sizing: auto;
    font-variation-settings:
      "slnt" 0,
      "FLAR" 0,
      "VOLM" 0;
}

/* Font weight utilities for Commissioner */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Full-screen video background container */
.video-background-holder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    /* Fallback background image - always visible behind video */
    background-image: url('../img/mickle-law-video-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video background styling */
.video-background-holder video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Dark overlay */
.video-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* Content container */
.video-background-content {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Content wrapper for responsive centering */
.video-background-content .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Content area */
.video-background-content .d-flex {
    width: 100%;
    max-width: 1000px;
    padding: 2rem 0;
}

.all-caps {
    text-transform: uppercase;
}

.letter-spacing {
    letter-spacing: 0.1em;
}

/* Logo styling */
.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

/* Contact button styling */
.contact-button-container {
    margin-top: 2rem;
}

.contact-button {
    padding: 0.8rem 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color: #ac9771;
    border-color: #ac9771;
    color: white;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #9a8560;
    border-color: #9a8560;
    color: white;
}

.contact-button:focus {
    background-color: #ac9771;
    border-color: #ac9771;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(172, 151, 113, 0.25);
}

/* Address container styling */
.address-container {
    margin: 1.5rem 0;
    color: white;
}

.address-container p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.address-container a {
    color: #ac9771;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

.address-container a:hover {
    color: #9a8560;
    text-decoration: underline;
}

/* Phone number styling */
.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ac9771 !important;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.phone-number:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Directions link styling */
.directions-link {
    color: #ac9771;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-top: 1rem;
    padding: 0.3rem 0.8rem;
    border: 2px solid #ac9771;
    border-radius: 25px;
    transition: all 0.3s ease;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.directions-link:hover {
    color: white !important;
    background-color: #ac9771;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(172, 151, 113, 0.3);
}

.directions-link i {
    margin-right: 0.5rem;
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #ac9771;
    color: white;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
    background-color: white;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.x-small {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Form styling */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ac9771;
    box-shadow: 0 0 0 0.2rem rgba(172, 151, 113, 0.25);
}

/* Form validation states */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.88 1.88 3.77-3.77.94.94L4.12 9.55z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4 1.4-1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Modal buttons */
.modal-footer .btn-primary {
    background-color: #ac9771;
    border-color: #ac9771;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-footer .btn-primary:hover {
    background-color: #9a8560;
    border-color: #9a8560;
    color: white;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: white;
}

/* Footer styling */
footer {
    position: relative;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-background-content .container {
        min-height: auto;
        padding: 1rem;
    }
    
    .video-background-content .d-flex {
        padding: 1rem 0;
    }
    
    .logo {
        max-width: 300px;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .contact-button {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 250px;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}