/* style.css */
:root {
    --gunmetal: #2b2d31;
    --tactical: #1a1b1e;
    --brass: #b5a642;
    --brass-hover: #9c8e32;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-color: #374151;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background-color: var(--tactical); color: var(--text-main); display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brass); }
hr { border: 0; border-top: 1px solid var(--border-color); margin: 20px 0; }

/* Navigation */
nav { background-color: var(--gunmetal); border-bottom: 2px solid var(--brass); position: sticky; top: 0; z-index: 50; padding: 15px 20px; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo { font-size: 24px; font-weight: bold; color: var(--brass); letter-spacing: 1px; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.nav-links a { font-weight: 500; font-size: 15px; }

/* Headers & Sections */
header { text-align: center; padding: 60px 20px; background-color: var(--gunmetal); border-bottom: 1px solid var(--border-color); }
header h1 { font-size: 40px; margin-bottom: 15px; color: white; }
header p { font-size: 18px; color: var(--text-muted); max-width: 700px; margin: 0 auto 25px auto; }
.contact-badge { display: inline-block; background: var(--tactical); border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; text-align: left; }
.contact-badge p { font-size: 15px; margin-bottom: 8px; color: var(--text-main); }
.contact-badge .title { color: var(--brass); font-weight: bold; margin-bottom: 10px; }

section { max-width: 900px; margin: 0 auto; padding: 40px 20px; flex-grow: 1; width: 100%; }
.inventory-section { max-width: 1200px; }
h2 { font-size: 28px; color: var(--brass); margin-bottom: 10px; }
.subtitle { color: var(--text-muted); margin-bottom: 30px; line-height: 1.5; }
.notice-box { background-color: var(--gunmetal); border-left: 4px solid var(--brass); padding: 15px; margin-bottom: 30px; border-radius: 4px; }
.notice-box p { font-size: 14px; margin-bottom: 8px; line-height: 1.4; }

/* Forms */
form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; gap: 15px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 250px; display: flex; flex-direction: column; }
label { font-size: 14px; color: var(--text-muted); margin-bottom: 5px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 12px 15px; border-radius: 6px; background-color: var(--gunmetal); border: 1px solid var(--border-color); color: white; font-size: 15px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brass); }
button { width: 100%; background-color: var(--brass); color: var(--tactical); font-weight: bold; font-size: 16px; padding: 15px; border: none; border-radius: 6px; cursor: pointer; transition: 0.2s; margin-top: 10px; }
button:hover { background-color: var(--brass-hover); }

/* Inventory Grid */
.inventory-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.search-bar { width: 100%; max-width: 350px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.card { background-color: var(--gunmetal); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; display: flex; flex-direction: column; }
.card h3 { font-size: 20px; color: white; margin-bottom: 5px; line-height: 1.3; }
.card .make { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.card .details { margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
.card .details span { color: var(--text-muted); }
.card .details strong { color: var(--text-main); font-weight: 500; }
.card .btn-link { display: block; text-align: center; background-color: #4b5563; color: white; padding: 12px; border-radius: 6px; margin-top: auto; font-weight: bold; }
.card .btn-link:hover { background-color: #374151; color: white; }
.loading { text-align: center; color: var(--brass); padding: 50px 20px; font-size: 16px; font-weight: bold; line-height: 1.5; }

/* Footer */
footer { background-color: var(--gunmetal); border-top: 1px solid var(--border-color); padding: 40px 20px 20px; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: var(--brass); font-size: 18px; margin-bottom: 15px; }
.footer-col p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--text-muted); }

/* =========================================================
   MOBILE RESPONSIVENESS (Media Queries)
   ========================================================= */
@media screen and (max-width: 768px) {
    /* Stack navigation menu neatly */
    .nav-container { flex-direction: column; text-align: center; }
    .nav-links { gap: 15px; }
    
    /* Adjust header sizing for phones */
    header { padding: 40px 15px; }
    header h1 { font-size: 32px; }
    header p { font-size: 16px; }
    .contact-badge { width: 100%; text-align: center; }
    
    /* Make sections fit better on narrow screens */
    section { padding: 30px 15px; }
    h2 { font-size: 24px; }
    
    /* Inventory header stacking */
    .inventory-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .search-bar { max-width: 100%; }
    
    /* Force grid to 1 column on very small phones */
    .grid { grid-template-columns: 1fr; }
    
    /* Center footer content */
    .footer-col { text-align: center; }
}