:root {
    --smoky-black: #11120D;
    --olive-drab: #565449;
    --bone: #D8CFBC;
    --floral-white: #FFFBF4;
    --nav-height: 128px;
    --footer-height: 64px;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(rgba(4, 9, 30, 0.45), rgba(4, 9, 30, 0.45)), url('../images/tmsblackwide1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Navigation */
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    height: var(--nav-height);
    background-color: transparent;
    box-sizing: border-box;
}

.nav-left, .nav-right {
    flex: 1;
}

.nav-left {
    font-weight: 700;
    color: var(--floral-white);
}

.nav-center {
    flex: 0;
    text-align: center;
}

.nav-center img {
    display: block;
    max-height: calc(var(--nav-height) * 0.98);
    height: auto;
    width: auto;
}

.logo {
    display: block;
    max-height: calc(var(--nav-height) * 0.95);
    height: auto;
    width: auto;
    align-items: center;
}

@media (max-width: 600px) {
    .nav-center { font-size: 1rem; }
    .nav-left { font-size: 0.95rem; }
    .nav-center img { max-height: 88px; }
}
/* Hero Section */
#hero {
    height: calc(100vh - var(--nav-height) - var(--footer-height));
    color: var(--floral-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

#hero p {
    font-size: 1.2em;
}

/* Footer */
footer {
    background-color: transparent;
    color: var(--floral-white);
    text-align: center;
    height: var(--footer-height);
    display: flex;
    align-items: left;
    justify-content: left;
    padding: 8px 6%;
    box-sizing: border-box;
    gap: 8px;
}

.social-icons {
    display: flex;
    gap: 8px;
    justify-content: left;
}

footer button {
    display: inline-block;
    margin: 8px auto;
    padding: 8px 16px;
    border: 1px solid var(--floral-white);
    color: var(--floral-white);
    background: transparent;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .footer-btn { padding: 6px 12px; }
}

footer p {
    font-size: 0.35rem;
    opacity: 0.95;
    margin: 0;
    width: 100%;
    text-align: right;
}

footer .social-icons a {
    color: var(--floral-white);
    font-size: 1em;
    margin: 0 6px;
    text-decoration: none;
}

@media (max-width: 600px) {
    .social-icons { gap: 6px; }
    footer .social-icons a { font-size: 1rem; margin: 0 4px; }
}

/* Contact modal styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    align-items: center;
    justify-content: center;
}
.modal.open { display: flex; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.modal-content {
    position: relative;
    z-index: 2;
    width: min(720px, 92%);
    max-width: 720px;
    background: rgba(4,9,30,0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    color: var(--floral-white);
}
.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: none;
    color: var(--floral-white);
    font-size: 1.6rem;
    cursor: pointer;
}
.modal-content h2 { margin-top: 0; margin-bottom: 12px; }
.modal-content label { display:block; margin-top:10px; font-size:0.95rem; }
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top:6px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.02);
    color: var(--floral-white);
}
.modal-content textarea { resize: vertical; }
.form-actions { margin-top: 12px; text-align: right; }
.btn-submit {
    background: var(--floral-white);
    color: var(--smoky-black);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 480px) {
    .modal-content { padding: 14px; }
    .form-actions { text-align: center; }
    .btn-submit { width: 100%; }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {

    .nav-links {
        display: none;
    }
}