/*
Theme Name: Marathon Packaging
Description: A custom WordPress theme for Marathon Packaging LLC, featuring flexible packaging solutions design.
Version: 1.0
Author: Custom Development
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-weight: 400;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
}

.top-nav .container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-nav a {
    text-decoration: none;
    color: var(--primary-color, #00005a);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color, #8b000b);
    transition: width 0.3s ease;
}

.top-nav a:hover {
    color: var(--accent-color, #8b000b);
}

.top-nav a:hover::after {
    width: 100%;
}

.hero {
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
}

.differentiators {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.differentiator {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .subheadline {
    font-size: 1.25rem;
    margin: 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color, #8b000b);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 0, 11, 0.3);
}

.btn-primary:hover {
    background: var(--accent-color, #8b000b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.section {
    padding: 80px 0;
}

/* All sections have white background - will be enforced by dynamic CSS */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
}

.section h3 {
    font-size: 1.8rem;
    margin: 30px 0 20px 0;
    color: #34495e;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.why-choose {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color, #8b000b);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature h4 {
    font-size: 1.3rem;
    color: var(--primary-color, #00005a);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Core Offerings */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.offering {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.offering h3 {
    color: var(--primary-color, #00005a);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.industry, .material, .commitment-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 90, 0.05);
    position: relative;
    overflow: hidden;
}

.industry::before, .material::before, .commitment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8b000b, #00005a);
}

.industry:hover, .material:hover, .commitment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.industry h3, .material h3, .commitment-item h3 {
    color: #00005a;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.industry p, .material p, .commitment-item p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
}



.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--secondary-color, #3498db);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.contact-form.primary-form {
    border-left: 4px solid var(--accent-color, #e74c3c);
    position: relative;
}

.contact-form.primary-form::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color, #e74c3c);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.contact-form h3 {
    color: var(--primary-color, #2c3e50);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-form p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color, #2c3e50);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--secondary-color, #3498db);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ensure all contact form buttons use primary styling */
.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 10px;
    padding: 15px 30px;
    background: var(--accent-color, #8b000b);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 11, 0.3);
}

.contact-form button[type="submit"]:hover {
    background: var(--accent-color, #8b000b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 11, 0.4);
}

.contact-form button[type="submit"]:disabled {
    background: #9ca3af;
    color: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.contact-form button[type="submit"]:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Success messages with new design */
.success-message {
    background: linear-gradient(135deg, var(--success-color, #27ae60) 0%, #219a52 100%);
    color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}



footer {
    background: linear-gradient(135deg, #00005a 0%, #8b000b 100%);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Success messages */
.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 2rem !important;
    border-radius: 8px !important;
    font-weight: 500;
}

/* Target Markets */
.markets-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.market-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 90, 0.05);
    position: relative;
    overflow: hidden;
}

.market-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8b000b, #00005a);
}

.market-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.market-item h4 {
    color: #00005a;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.market-item p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Materials */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.material-item {
    background: var(--primary-color, #00005a);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 90, 0.2);
}

.material-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 90, 0.3);
}

/* Marathon Approach */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    background: var(--accent-color, #8b000b);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px rgba(139, 0, 11, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-number {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 11, 0.4);
}

.step h4 {
    color: var(--primary-color, #00005a);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Sustainability */
.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.sustainability-item {
    background: var(--success-color, #27ae60);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.sustainability-item h4 {
    margin-bottom: 15px;
}

/* Final CTA */
.final-cta {
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.final-cta h2 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Legacy compatibility - keep existing grid classes working */
.offerings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.industry, .material, .commitment-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 90, 0.05);
    position: relative;
    overflow: hidden;
}

.industry::before, .material::before, .commitment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color, #e74c3c), var(--primary-color, #2c3e50));
}

.industry:hover, .material:hover, .commitment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.industry h3, .material h3, .commitment-item h3 {
    color: var(--primary-color, #2c3e50);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.industry p, .material p, .commitment-item p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 1.5rem;
    }
    
    .offerings, .offerings-grid, .industries, .materials, .commitment, .contact-container, .markets-list, .why-choose, .approach-steps, .sustainability-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .materials-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-nav .container {
        gap: 1rem;
    }
    
    .top-nav a {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .differentiators {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .offering, .industry, .material, .commitment-item, .contact-form, .feature, .market-item, .step, .sustainability-item {
        padding: 25px;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .final-cta p {
        font-size: 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .top-nav .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-nav a {
        padding: 8px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .offerings-grid, .markets-list, .materials-grid, .why-choose, .approach-steps, .sustainability-grid, .contact-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .offering, .feature, .market-item, .step, .sustainability-item, .contact-form {
        padding: 20px;
    }
    
    .contact-form.primary-form::before {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
}