/* 
 * Created: New advertorial styles for "Outgrown Starter Gear" page
 * Based on: 5-mistakes-buying-first-gloves/styles.css
 * Changes: Added author bio, product showcase (2-column), inline CTAs, and enhanced list styling (`fancy-list`).
 * Also includes `sign-section`, `sign-header`, `sign-number`, and `content-section` for article structure.
 */

/* 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;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.125rem;
    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;
    font-weight: 900;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.1;
}

h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

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

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

em {
    font-style: italic;
}

/* 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 */
.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 (optional) */
.subheadline {
    font-size: 1.375rem;
    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;
}

/* Intro Text */
.intro-text {
    font-size: 1.125rem;
    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 {
    font-style: italic;
    color: #555;
    margin: 1.5rem 0;
    padding: 0;
    font-size: 1.125rem;
}

/* 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; }

/* Generic content sections */
.content-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e5e5;
}

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

/* Sign Sections (mirroring mistake-section) */
.sign-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e5e5;
}

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

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

.sign-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);
}

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

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

/* Intro and Sign images - similar to mistake images */
.intro-image-link,
.sign-image-link {
    display: block;
    max-width: 600px;
    margin: 2rem auto 0.75rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.intro-image-link:hover,
.sign-image-link:hover {
    transform: translateY(-2px);
}

.intro-image,
.sign-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    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;
}

.intro-image-link:hover .intro-image,
.sign-image-link:hover .sign-image {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Lists */
ul { margin: 1rem 0 1.75rem; padding-left: 1.25rem; }
li { margin-bottom: 0.75rem; }

/* Enhanced list styling - subtle and clean */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 1.25rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

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

/* 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);
}

/* Inline CTAs */
.inline-cta {
    display: inline-block;
    color: #D72F2F;
    text-decoration: none;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-left: 0.4rem;
    position: relative;
}
.inline-cta:hover { text-decoration: underline; }

/* Product Section - Optimized for CRO */
.product-section { 
    padding: 4rem 0; 
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
}
.product-headline { 
    text-align: center; 
    margin-bottom: 3rem; 
    font-size: 2.25rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}
.product-showcase { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
    align-items: start; 
}
.product-image-link { 
    display: block; 
    width: 100%; 
    max-width: 480px; 
    margin: 0 auto 1.5rem; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-image-link:hover { 
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.product-image { 
    width: 100%; 
    height: auto; 
    display: block;
    background: #fff;
}
.product-info { padding: 0 24px; }
.product-info h3 { 
    font-size: 2rem; 
    margin-bottom: 0.25rem;
    color: #000;
}
.product-tagline { 
    font-family: 'Roboto', 'Montserrat', sans-serif; 
    font-size: 1.15rem; 
    color: #666; 
    margin-bottom: 1.5rem; 
    font-weight: 500;
    font-style: italic;
}
.product-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #2a2a2a;
}
.product-features { 
    margin: 1.5rem 0 2rem; 
}
.product-features h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    color: #000;
}
.product-features h4:first-child {
    margin-top: 0;
}
.feature-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 0.65rem; 
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}
.feature-icon { 
    color: #28a745; 
    font-size: 1.1rem; 
    font-weight: bold; 
    flex-shrink: 0; 
    line-height: 1.5; 
    margin-top: 0.05rem; 
}
.feature-item p { 
    margin-bottom: 0; 
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}
.product-investment {
    background: linear-gradient(135deg, #fff 0%, #fcfcfc 100%);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-investment h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #000;
}
.product-investment p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    color: #2a2a2a;
}
.product-investment p:last-child {
    margin-bottom: 0;
}
.product-bottom-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 1.5rem 0 2rem;
    color: #2a2a2a;
}
.product-bottom-text strong {
    color: #000;
    font-weight: 700;
}
/* Mobile-optimized CTA placement */
.product-cta-wrapper {
    margin-top: 2rem;
    text-align: center;
}
@media (max-width: 768px) {
    .product-cta-wrapper {
        position: sticky;
        bottom: 0;
        background: linear-gradient(to top, #F5F5F5 0%, rgba(245,245,245,0.98) 70%, rgba(245,245,245,0.9) 90%, transparent);
        padding: 1.5rem 0 1rem;
        margin: 2rem -24px 0;
        z-index: 10;
    }
}

/* 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;
}

.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; }
    .product-section { padding: 3rem 0 2rem; }
    .product-headline { font-size: 1.75rem; margin-bottom: 2rem; }
    .product-info h3 { font-size: 1.65rem; }
    .product-tagline { font-size: 1.05rem; }
    .product-intro { font-size: 1.05rem; }
    .feature-list li { padding-left: 1.5rem; margin-bottom: 0.4rem; font-size: 1rem; }
    .feature-item p { font-size: 0.95rem; }
    .product-investment { padding: 1.25rem; margin: 1.5rem 0; }
    .product-investment p { font-size: 1rem; }
    /* Compact author blurb on mobile */
    .author-blurb {
        padding: 1rem;
        margin: 1.5rem auto;
        gap: 0.75rem;
    }
    .author-avatar {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }
    .author-name {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }
    .author-credentials {
        font-size: 0.75rem;
        line-height: 1.25;
        margin-bottom: 0.15rem;
    }
    .author-date {
        font-size: 0.7rem;
    }
    h1 { font-size: 1.875rem; margin-bottom: 1.25rem; }
    .subheadline { font-size: 1.125rem; 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; }
    .sign-section, .content-section { padding: 2rem 0; }
    .sign-header { gap: 1rem; margin-bottom: 1.5rem; }
    .sign-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; }
    .final-cta-section { padding: 2.5rem 0; }
    .footer-content { flex-direction: column; text-align: center; }
    .copyright { order: 2; }
    .social-icons { order: 1; }
    .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; }
    /* Images on mobile */
    .intro-image-link, .sign-image-link { margin: 1.5rem auto 0.5rem; }
    .intro-image, .sign-image { border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
    .intro-image-link:hover, .sign-image-link:hover { transform: none; }
    .intro-image-link:hover .intro-image, .sign-image-link:hover .sign-image { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
    .image-caption { font-size: 0.85rem; margin-bottom: 0.5rem; padding: 0 10px; }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .sign-number { width: 60px; height: 60px; }
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
    h1 { font-size: 3.25rem; }
    .hero h1 { max-width: 1100px; }
    .product-showcase { 
        grid-template-columns: 45% 55%; 
        align-items: start; 
        gap: 3.5rem;
        max-width: 1100px;
        margin: 0 auto;
    }
    .product-image-link {
        max-width: 100%;
        margin-top: 1rem;
        position: sticky;
        top: 2rem;
    }
    .product-info { padding: 0; }
    .product-cta-wrapper { text-align: left; }
}

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


