:root {
    --primary-color: #d12d23;
    --bg-color: #FFFFFF;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
}

.header-logo {
    width: 23px;
    height: 30px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}

.nav a:not(.btn-login):hover {
    opacity: 0.7;
}

.btn-login {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 1px;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10vh; /* Shift up a little */
}

.center-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.main-logo {
    width: 240px;
    height: 320px;
}

.main-text {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5em;
    margin-right: -0.5em; /* Compensate for rightmost tracking */
    text-align: center;
}

@media (max-width: 900px) {
    .header {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .main-logo {
        width: 180px;
        height: 220px;
    }
    .main-text {
        font-size: 0.7rem;
        letter-spacing: 0.4em;
        margin-right: -0.4em;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 8% auto;
    padding: 3rem;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(209, 45, 35, 0.1);
}

.close-btn {
    color: var(--primary-color);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.close-btn:hover,
.close-btn:focus {
    opacity: 0.5;
}

.modal-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(209, 45, 35, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--primary-color);
    opacity: 0.6;
}

.btn-submit {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-submit:active {
    transform: scale(0.98);
}
