/* 
 * MMA Warehouse Advertorial Styles
 * Note: Use <div> instead of <article> tag in HTML for Vercel compatibility
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force main content visibility on Vercel */
main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh;
}

main > div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure text is visible even if fonts fail to load */
.hero, .brand-mark, h1, h2, h3, p {
    visibility: visible !important;
    opacity: 1 !important;
}

html {
    font-size: 18px; /* Increased base font size for better readability */
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.125rem; /* 20px body text */
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #000000;
}

h1 {
    font-size: 2.75rem; /* 49.5px - reduced for better mobile */
    font-weight: 900;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.1;
}

h2 {
    font-size: 2.25rem; /* 40.5px */
    font-weight: 800;
    margin-bottom: 1.75rem;
}

h3 {
    font-size: 1.75rem; /* 31.5px */
    font-weight: 700;
    margin-bottom: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: #2a2a2a;
}

strong {
    font-weight: 700;
    color: #000;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow {
    max-width: 760px;
}

/* Hero Section */
.hero {
    padding: 2rem 0 2rem;
}

/* Brand Mark */
.brand-mark {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-align: center;
    color: #999;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Make headline wider than content on desktop */
.hero h1 {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

/* Headline emphasis styles - streamlined */
.highlight-hurt {
    color: #D72F2F;
    font-weight: 900;
}

.highlight-target {
    position: relative;
    box-shadow: inset 0 -0.25em 0 0 #FFD76F;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    white-space: normal;
    word-break: break-word;
    padding: 0 2px;
}

/* Subheadline */
.subheadline {
    font-size: 1.375rem; /* Larger than intro text */
    color: #333;
    text-align: center;
    margin: -0.5rem auto 2.5rem;
    max-width: 700px;
    padding: 0 24px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* Author Blurb */
.author-blurb {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border-radius: 12px;
    margin: 2.5rem auto;
    max-width: 680px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08), 
                0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.author-blurb:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), 
                0 2px 5px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.author-blurb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D72F2F 0%, #B12525 100%);
    opacity: 0.8;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.author-info {
    flex: 1;
}

.author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: #000;
    letter-spacing: -0.01em;
}

.author-credentials {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.author-date {
    font-family: 'Roboto', 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Intro Text - Better flow */
.intro-text {
    font-size: 1.125rem; /* Properly sized intro text */
    line-height: 1.75;
    margin-bottom: 3rem;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

.intro-text p:first-child {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1a1a1a;
}

/* Dialogue/Quote Styling */
.dialogue {
    font-style: italic;
    color: #555;
    margin: 1.5rem 0;
    padding: 0;
    font-size: 1.125rem;
}

/* Mistake Sections */
.mistake-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.mistake-section:last-of-type {
    border-bottom: none;
}

.mistake-header {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
}

.mistake-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background-color: #D72F2F;
    color: #FFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(215, 47, 47, 0.2);
}

.mistake-header h2 {
    margin-bottom: 0;
    flex: 1;
}

.mistake-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 0.75rem;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect moved to parent link */
.mistake-image-link:hover .mistake-image {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Mistake image links */
.mistake-image-link {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.mistake-image-link:hover {
    transform: translateY(-2px);
}

/* Loading state for images */
.mistake-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.mistake-image[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.image-caption {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

.mistake-content p {
    margin-bottom: 1.75rem;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.feature-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #D72F2F;
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.3;
}

/* Inline CTAs */
.inline-cta {
    display: inline-block;
    color: #D72F2F;
    text-decoration: none;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 1.5rem 0 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 2rem;
}

.inline-cta:after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.inline-cta:hover {
    text-decoration: underline;
}

.inline-cta:hover:after {
    transform: translateY(-50%) translateX(4px);
}

/* Solution Section */
.solution-section {
    padding: 3.5rem 0;
    background: linear-gradient(to bottom, #FFFFFF, #FAFAFA);
}

.solution-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.solution-section p {
    font-size: 1.125rem;
}

/* Product Section */
.product-section {
    padding: 3.5rem 0;
    background: linear-gradient(to bottom, #FAFAFA, #F3F3F3);
}

.product-headline {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Product image - mobile optimized and clickable */
.product-image-link {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.product-image-link:hover {
    transform: scale(1.02);
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
}

.product-info h3 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.product-tagline {
    font-family: 'Roboto', 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.product-features {
    margin: 2.5rem 0;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-icon {
    color: #28a745; /* Green checkmarks */
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1.4;
    margin-top: 0.1rem;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.product-description {
    margin: 2rem 0;
    font-size: 1.125rem;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem 1.25rem 2.5rem;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.02em;
    position: relative;
}

.cta-button:after {
    content: "→";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.cta-button.primary {
    background-color: #D72F2F;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(215, 47, 47, 0.2);
}

.cta-button.primary:hover {
    background-color: #B12525;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 47, 47, 0.3);
}

.cta-button.primary:hover:after {
    transform: translateY(-50%) translateX(3px);
}

/* Large button style removed for consistency */

.final-cta-section .cta-button {
    display: inline-block;
    margin: 1.5rem 0;
}

/* Final CTA Section */
.final-cta-section {
    padding: 3.5rem 0;
    text-align: left;
}

.final-cta-section h2 {
    text-align: left;
    margin-bottom: 1.75rem;
}

.final-cta-section p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    text-align: left;
}

.final-cta-section strong {
    font-weight: 700;
    color: #000;
}

.guarantee {
    margin-top: 2rem;
    font-style: italic;
    color: #666;
    font-size: 1.05rem;
    text-align: left;
}

.closing {
    margin-top: 2.5rem;
    font-weight: 500;
    font-size: 1.25rem;
    color: #1a1a1a;
    text-align: left;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #FFF;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
    color: #999;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-icons a:hover {
    background-color: #D72F2F;
    color: #FFF;
    border-color: #D72F2F;
    transform: translateY(-2px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.copyright {
    font-size: 0.875rem;
    color: #999;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    body {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.875rem; /* Even smaller on mobile */
        margin-bottom: 1.25rem;
    }
    
    .subheadline {
        font-size: 1.125rem; /* Properly sized for mobile */
        margin: -0.25rem auto 2rem;
        padding: 0 20px;
        line-height: 1.4;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .mistake-section {
        padding: 2rem 0;
    }
    
    .mistake-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
        flex-direction: row; /* Keep side by side on mobile */
    }
    
    .mistake-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .intro-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .intro-text p {
        margin-bottom: 1.25rem;
    }
    
    .intro-text p:first-child {
        font-size: 1.1rem;
    }
    
    .product-section {
        padding: 2.5rem 0;
    }
    
    .product-headline {
        font-size: 1.625rem;
        margin-bottom: 2rem;
    }
    
    .product-info h3 {
        font-size: 1.875rem;
    }
    
    .solution-section {
        padding: 2.5rem 0;
    }
    
    .final-cta-section {
        padding: 2.5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        order: 2;
    }
    
    .social-icons {
        order: 1;
    }
    
    /* Responsive author blurb on mobile */
    .author-blurb {
        padding: 1.25rem 1.25rem;
        margin: 2rem auto;
        gap: 1rem;
    }
    
    .author-blurb::before {
        height: 2px;
    }
    
    .author-avatar {
        width: 65px;
        height: 65px;
        border-width: 2px;
    }
    
    .author-name {
        font-size: 0.95rem;
    }
    
    .author-credentials {
        font-size: 0.78rem;
        line-height: 1.3;
    }
    
    .author-date {
        font-size: 0.75rem;
    }
    
    /* Mistake images on mobile */
    .mistake-image {
        max-width: 100%;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .mistake-image-link:hover {
        transform: none; /* Disable hover on mobile */
    }
    
    .mistake-image-link:hover .mistake-image {
        box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Keep original shadow on mobile */
    }
    
    .image-caption {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
    
    /* CTA Buttons on mobile */
    .cta-button {
        padding: 1rem 2.5rem 1rem 2rem;
        font-size: 1rem;
        white-space: nowrap;
        max-width: 100%;
        display: inline-block;
        width: auto;
    }
    
    .cta-button:after {
        right: 1rem;
        font-size: 1.1rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .author-blurb {
        max-width: 600px;
        padding: 1.5rem 1.75rem;
    }
    
    .author-avatar {
        width: 75px;
        height: 75px;
    }
    
    /* Mistake images on tablet */
    .mistake-image {
        max-width: 500px;
    }
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
    h1 {
        font-size: 3.25rem; /* Reduced desktop size */
    }
    
    .hero h1 {
        max-width: 1100px;
    }
    
    .product-showcase {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }
    
    .product-image-link {
        max-width: 100%;
    }
    
    .mistake-content {
        font-size: 1.125rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1440px) {
    h1 {
        font-size: 3.5rem; /* Reduced ultra-wide size */
    }
    
    .hero h1 {
        max-width: 1200px;
    }
}