/* ==========================================
   STYLE.CSS - M TRIBUS Customizations
   Extends base.css with brand-specific styling
   ALL 10 FIXES + DESIGN SYSTEM IMPLEMENTED
   ========================================== */

/* Brand-Specific Typography */
.brand-text,
.hero h1 {
    font-family: var(--font-brand); /* Cinzel for standalone M TRIBUS */
}

/* Enhanced Logo */
.logo {
    font-size: 1.75rem;
    letter-spacing: 3px;
}

/* Enhanced Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

nav ul {
    gap: 2.5rem;
}

nav a {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    nav ul {
        gap: 1.25rem;
        font-size: 0.85rem;
    }
    .logo {
        font-size: 1.25rem;
    }
}

/* Hero Sections - FIXED responsive background */
.hero {
    padding: 8rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px; /* Ensures proper display */
}

.hero-page {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    letter-spacing: 4px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        min-height: 300px;
    }
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

/* Enhanced Buttons */
.btn {
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 2px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 228, 149, 0.4);
}

.btn-outline {
    padding: 0.75rem 2rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

section.alt {
    background-color: var(--gray-dark);
}

/* Enhanced Typography Hierarchy */
h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-weight: 600;
}

/* Content Boxes */
.content-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Product Grid - FIXED text visibility */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: var(--gray-light); /* Light background for visibility */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: contain; /* Shows full shirt without cropping */
    background-color: #f5f5f5; /* Light background to match card */
    display: block;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-dark); /* Dark text on light background */
    font-weight: 600;
}

.product-info p {
    font-size: 0.9rem;
    color: #666; /* Medium gray for readability */
    margin-bottom: 1rem;
}

/* Features Grid - For "Why M Tribus" style sections */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature {
    background-color: #2a2a2a; /* Dark background for contrast */
    padding: 2.5rem;
    border-radius: 4px;
    text-align: center;
    border-left: 3px solid var(--gold);
}

.feature h3 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--gold);
    font-weight: 600;
}

.feature p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e0e0e0; /* Light gray for excellent readability */
    margin-bottom: 0;
}

.feature strong {
    color: var(--gold-light);
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Heritage/Museum Grid */
.heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.heritage-item {
    background-color: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
}

.heritage-item:hover {
    transform: translateY(-3px);
}

.heritage-item img {
    width: 100%;
    height: 400px; /* FIXED HEIGHT for uniformity */
    object-fit: contain; /* Maintains aspect ratio, centers image */
    background-color: #1a1a1a; /* Dark background for letterboxing */
    display: block;
}

.heritage-item .product-info {
    padding: 1.5rem;
    text-align: left;
    background-color: #2a2a2a; /* Ensure readable background */
}

.heritage-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--gold);
}

.heritage-item p {
    font-size: 0.95rem;
    color: #e0e0e0; /* Lighter gray for better readability */
    line-height: 1.6;
}

/* Museum Pages - Gallery Structure */
.gallery {
    padding: 5rem 0;
}

.gallery.alt {
    background-color: var(--gray-dark);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-number {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 0.5rem;
}

.gallery-title {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery-era {
    font-size: 1rem;
    font-style: italic;
    color: #ccc;
}

.gallery-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    text-align: center;
}

.gallery-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #f5f5f5; /* Brighter white for better readability */
}

/* Quote Boxes - Improved readability */
.quote-box {
    background-color: #2a2a2a;
    padding: 2.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--gold);
    margin: 3rem 0;
}

.quote-box p:first-child {
    font-size: 1.15rem;
    font-style: italic;
    color: #FFF8DC; /* Lighter gold for better readability */
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.quote-box p:last-child {
    font-size: 1rem;
    color: #bbb; /* Lighter gray for better readability */
    text-align: right;
    margin-bottom: 0;
}

/* Feature Sections */
.feature-section {
    padding: 5rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-item img {
    max-width: 100%;
    margin: 0 auto 1.5rem;
}

.feature-item h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Museum Preview Cards (Homepage) */
.museum-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .museum-preview-grid {
        grid-template-columns: 1fr;
    }
}

.museum-card {
    background-color: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
}

.museum-card:hover {
    transform: translateY(-5px);
}

.museum-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.museum-card-content {
    padding: 2rem;
}

.museum-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.museum-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0; /* Lighter for better readability */
    margin-bottom: 1.5rem;
}

/* Timeline/History Cards */
.timeline-item {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--gold);
}

.timeline-item h4 {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.timeline-item .date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

.timeline-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Comparison Boxes */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-box {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 4px;
}

.comparison-box h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    text-align: center;
}

.comparison-box ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.comparison-box li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #444;
}

.comparison-box li:last-child {
    border-bottom: none;
}

/* Coming Soon Placeholder */
.coming-soon {
    background-color: #2a2a2a;
    padding: 4rem 2rem;
    border-radius: 4px;
    text-align: center;
    border: 2px dashed #555;
}

.coming-soon h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.coming-soon p {
    font-size: 1rem;
    color: #999;
}

/* Footer Enhancements */
footer {
    padding: 4rem 0 2rem;
}

footer p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

footer a {
    color: var(--gold);
    transition: color 0.3s;
}

footer a:hover {
    color: var(--white);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.35rem;
    }
    .gallery-title {
        font-size: 1.75rem;
    }
    .hero p,
    .gallery-intro p {
        font-size: 1rem;
    }
    .container {
        padding: 0 1.5rem;
    }
}

/* Responsive Spacing Adjustments */
@media (max-width: 768px) {
    section,
    .gallery,
    .feature-section {
        padding: 3rem 0;
    }
    .heritage-grid {
        gap: 2rem;
    }
    .feature-grid,
    .museum-preview-grid {
        gap: 2rem;
    }
}
