/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #faf9f6;
}

a {
    color: #8b1a1a;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 1rem 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid #e0ddd8;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1c1c1c;
    margin-bottom: 0.3rem;
}

header p {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    letter-spacing: 0.04em;
}


/* Branding */
.hero-banner {
    width: 100%;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.site-logo {
    height: 60px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

h1 {
    text-align: center;
}

h1 a {
    display: inline-block;
}


/* Nav */
nav {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e0ddd8;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 0.8rem;
}

nav ul li a {
    color: #555;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #8b1a1a;
}

/* Main content */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Section titles */
h2.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #1c1c1c;
}

/* About section on index */
.about-section {
    max-width: 750px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-section h2 {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #1c1c1c;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* Inventory grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.inventory-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #1c1c1c;
}

.guitar-tile {
    background: #fff;
    border: 1px solid #e8e5e0;
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.guitar-tile:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.guitar-tile a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.guitar-tile img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #e8e5e0;
}

.guitar-tile h3 {
    padding: 1rem 1.2rem 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1c1c;
}

.year {
    padding: 0 1rem 0.5rem;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.status-badge.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.restoration {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.coming-soon {
    background: #e3f2fd;
    color: #1565c0;
}

/* Guitar tile badge positioned */
.guitar-tile .status-badge {
    margin: 0.5rem 1.2rem 1rem;
}

/* Guitar detail page */
.guitar-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-title {
    font-size: 1.6rem;
    font-weight: 400;
    color: #1c1c1c;
    margin-bottom: 0.3rem;
}

.detail-year {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Full-size photo with lightbox */
.gallery {
    margin-bottom: 2rem;
}

.detail-main-photo {
    margin-bottom: 1rem;
}

.detail-main-photo img {
    width: 100%;
    max-height: 550px;
    object-fit: contain;
    background: #f5f4f0;
    border-radius: 3px;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.gallery-thumb {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
    border: 1px solid transparent;
}

.gallery-thumb:hover {
    opacity: 0.7;
    border-color: #8b1a1a;
}

/* Guitar details panel */
.guitar-details {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #e8e5e0;
    border-radius: 3px;
    margin-bottom: 2rem;
}

.guitar-details h2 {
    display: none; /* hidden, title is outside */
}

.detail-row {
    display: flex;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #edecec;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item-status {
    margin-bottom: 1rem;
}

.label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    width: 100px;
    margin-right: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    flex-shrink: 0;
}

.value {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

/* PDF links */
.pdf-links {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #edecec;
}

.pdf-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1c1c1c;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background-color 0.2s;
}

.pdf-link:hover {
    background: #444;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
}

.back-link:hover {
    color: #8b1a1a;
}

/* About page */
.about-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 0;
}

.about-page h2 {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: #1c1c1c;
}

.about-page p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

/* Contact page */
.contact-section {
    max-width: 550px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: #1c1c1c;
    text-align: center;
}

.contact-section > p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d0cdc7;
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    background-color: #faf9f6;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b1a1a;
    box-shadow: 0 0 0 2px rgba(139, 26, 26, 0.1);
}

.contact-section button {
    width: 100%;
    padding: 0.7rem;
    background-color: #1c1c1c;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.contact-section button:hover {
    background-color: #444;
}

.contact-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e8e5e0;
    border-radius: 3px;
    text-align: center;
}

.contact-info p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.contact-info a {
    color: #8b1a1a;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid #e0ddd8;
    background-color: #fff;
    font-size: 0.8rem;
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Mobile gallery JS handler */
#gallery-main {
    /* main large image in gallery */
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.6rem;
    }
    
    nav ul li {
        margin: 0.4rem 0.6rem;
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
    }
    
    .guitar-tile img {
        height: 240px;
    }
    
    .detail-main-photo img {
        max-height: 400px;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .label {
        width: auto;
        margin-bottom: 0.2rem;
    }
    
    .gallery-thumbnails {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1.5rem 0.8rem;
    }
    
    .gallery-thumb {
        width: 75px;
        height: 56px;
    }
}
