/* ===========================
   PEAK FOOTWEAR ADVERTORIAL - RESKINNED
   Matches reference visual system
=========================== */

/* Import normalize only */
@import url("/css/normalize.css");

/* ===========================
   DESIGN TOKENS
=========================== */
:root {
    /* Colors */
    --pf-primary: #2d7a2d;
    --pf-primary-dark: #1f5a1f;
    --pf-alert-bg: #fff3cd;
    --pf-alert-border: #ffc107;
    --pf-text-primary: #1a1a1a;
    --pf-text-secondary: #666;
    --pf-bg-light: #f5f5f5;
    --pf-testimonial-bg: #f9f9f9;
    --pf-advertorial-red: #e74c3c;

    /* Typography */
    --pf-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
        "Helvetica", "Arial", sans-serif;
    --pf-text-base: 21px;
    --pf-text-sm: 17px;
    --pf-text-xs: 14px;

    /* Spacing */
    --pf-space-section: 50px;
    --pf-space-content: 20px;
    --pf-space-image: 25px;

    /* Layout */
    --pf-container-width: 900px;
    --pf-radius-sm: 4px;
    --pf-radius-md: 6px;

    /* Shadows */
    --pf-shadow-sticky: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

/* ===========================
   BASIC RESETS
=========================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--pf-font-sans);
    color: var(--pf-text-primary);
    line-height: 1.7;
    background-color: #fff;
    margin: 0;
    padding: 0;
    font-size: var(--pf-text-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--pf-primary);
    text-decoration: underline;
}

/* ===========================
   META BAR
=========================== */
.adv-meta-bar {
    background-color: #2c2c2c;
    border-bottom: 1px solid #3a3a3a;
    padding: 2px 0;
    font-size: 13px;
    text-transform: uppercase;
}

.adv-meta-content {
    max-width: var(--pf-container-width);
    margin: 0 auto;
    padding: 0 var(--pf-space-content);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.adv-trending {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #ffffff;
}

.adv-flag {
    display: inline-flex;
    align-items: center;
}

.adv-flag img {
    display: inline-block;
    vertical-align: middle;
}

.adv-badge {
    background-color: transparent;
    color: #999;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 10px;
}

/* ===========================
   NAVBAR
=========================== */
.adv-navbar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
}

.adv-navbar-content {
    max-width: var(--pf-container-width);
    margin: 0 auto;
    padding: 0 var(--pf-space-content);
    text-align: center;
    display: flex;
    justify-content: center;
}

.adv-brand-logo {
    max-width: 160px;
    height: auto;
    display: inline-block;
}

.adv-brand-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--pf-text-primary);
    text-align: center;
}

/* ===========================
   MAIN ARTICLE CONTAINER
=========================== */
.section {
    padding: 0;
}

.container-article {
    max-width: var(--pf-container-width);
    margin: 0 auto;
    padding: 0 var(--pf-space-content);
}

.article-content {
    padding: 40px 0;
}

/* ===========================
   ARTICLE HEADER
=========================== */
.article-update {
    background-color: var(--pf-alert-bg);
    border: 2px solid var(--pf-alert-border);
    padding: 18px 20px;
    margin-bottom: 25px;
    font-size: var(--pf-text-sm);
    font-weight: 700;
    line-height: 1.6;
    border-radius: var(--pf-radius-sm);
}

.article-update strong {
    color: #d32f2f;
    font-weight: 900;
}

.article-category {
    color: #1a1a1a;
    font-size: var(--pf-text-sm);
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 3px solid #00bcd4;
    display: inline-block;
}

.article-headline {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 25px 0;
    color: var(--pf-text-primary);
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none;
}

.byline-text {
    font-size: var(--pf-text-sm);
    line-height: 1.5;
}

.byline-text strong {
    font-weight: 700;
    color: var(--pf-text-primary);
}

.byline-text span {
    color: var(--pf-text-secondary);
}

.byline-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.article-featured {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.featured-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-logos {
    max-width: 300px;
    height: auto;
    display: inline-block;
}

/* ===========================
   ARTICLE SECTIONS
=========================== */
.article-section {
    margin-bottom: var(--pf-space-section);
}

.article-image {
    width: 100%;
    height: auto;
    margin: var(--pf-space-image) 0;
    border-radius: var(--pf-radius-sm);
}

.article-section h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 30px 0 20px 0;
    color: var(--pf-text-primary);
}

.article-section h3 {
    font-size: 35px;
    font-weight: 700;
    line-height: 1.3;
    margin: 30px 0 20px 0;
    color: var(--pf-text-primary);
}

/* Highlighted text within h3 headings */
.article-section h3 .highlight {
    background-color: #fdfcdd;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

/* Links within highlighted h3 text */
.article-section h3 .highlight a {
    color: rgba(13, 110, 253, 1);
    text-decoration: none;
}

/* Product links throughout the article */
.article-section a.go-to-landing {
    color: rgba(13, 110, 253, 1);
    text-decoration: none;
    font-weight: inherit;
}

.article-section a.go-to-landing:hover {
    text-decoration: underline;
}

/* Links within h3 headings */
.article-section h3 a.go-to-landing {
    color: rgba(13, 110, 253, 1);
    text-decoration: none;
    font-weight: 700;
}

.article-section p {
    font-size: var(--pf-text-base);
    line-height: 1.7;
    margin: 0 0 20px 0;
    color: var(--pf-text-primary);
}

.article-section p strong {
    font-weight: 700;
    color: var(--pf-text-primary);
}

.article-list {
    margin: 30px 0;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.list-number {
    /* Circular badge styling */
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;

    /* Center the number */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Typography */
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.list-content {
    flex: 1;
    line-height: 1.7;
}

.list-content strong {
    font-weight: 700;
    color: var(--pf-text-primary);
}

/* ===========================
   TESTIMONIAL BLOCKS
=========================== */
.testimonial-block {
    margin: 35px 0;
    padding: 30px;
    background-color: #e5f3f8;
    border-radius: 8px;
}

.testimonial-block .article-image {
    margin-bottom: 20px;
    border-radius: 4px;
}

.testimonial-text {
    background-color: transparent;
    padding: 0;
    border-left: none;
    margin-top: 0;
    border-radius: 0;
}

.testimonial-text p {
    margin: 0 0 15px 0;
    font-size: var(--pf-text-base);
    line-height: 1.7;
    font-style: normal;
}

.testimonial-text p:last-child {
    margin-bottom: 0;
}

.testimonial-text p strong {
    font-weight: 700;
    font-style: normal;
}

/* ===========================
   CTA SECTION - FULL WIDTH GREEN BUTTON
=========================== */
.article-cta-section {
    margin: 50px -20px;
    text-align: center;
}

.cta-section-heading {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 30px 0;
    color: var(--pf-text-primary);
    padding: 0 20px;
}

.article-cta-button {
    margin: 0;
}

.cta-button-large {
    display: block;
    width: 100%;
    background-color: var(--pf-primary);
    color: #fff !important;
    font-size: 21px;
    font-weight: 700;
    padding: 20px 40px;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button-large:hover {
    background-color: var(--pf-primary-dark);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* ===========================
   UPDATE BOX
=========================== */
.article-update-box {
    background-color: var(--pf-alert-bg);
    border: 2px solid var(--pf-alert-border);
    padding: 20px 25px;
    margin: 35px 0;
    font-size: var(--pf-text-sm);
    line-height: 1.6;
    border-radius: var(--pf-radius-sm);
}

.article-update-box p {
    margin: 0;
}

.article-update-box strong {
    font-weight: 700;
}

/* ===========================
   STICKY CTA - GRAY BACKGROUND + CENTERED GREEN BUTTON
=========================== */
.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f8f8f8;
    box-shadow: var(--pf-shadow-sticky);
    padding: 15px 20px;
    display: none;
    text-align: center;
}

.sticky-cta-mobile.visible {
    display: block;
}

.sticky-cta-button {
    display: inline-block;
    background: var(--pf-primary);
    color: white !important;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 100px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background-color: var(--pf-bg-light);
    border-top: 1px solid #ddd;
    padding: 35px 0;
    margin-top: 50px;
}

.footer hr {
    display: none;
}

.footer-copyright {
    text-align: center;
    font-size: var(--pf-text-sm);
    color: var(--pf-text-secondary);
    margin: 0 0 25px 0;
}

.footer-disclaimer {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 25px;
    margin-bottom: 25px;
    font-size: var(--pf-text-xs);
    line-height: 1.6;
    color: var(--pf-text-secondary);
    border-radius: var(--pf-radius-sm);
}

.footer-disclaimer p {
    margin: 0 0 12px 0;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

.footer-disclaimer strong {
    font-weight: 700;
    color: var(--pf-text-primary);
}

.footer-links {
    text-align: center;
    font-size: 13px;
}

.footer-links a {
    color: var(--pf-primary);
    text-decoration: none;
    margin: 0 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE: TABLET
=========================== */
@media (max-width: 1024px) {
    .article-headline {
        font-size: 36px;
    }

    .article-section h2 {
        font-size: 28px;
    }

    .article-section h3 {
        font-size: 30px;
    }
}

/* ===========================
   RESPONSIVE: MOBILE
=========================== */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .article-content {
        padding: 30px 0;
    }

    .article-headline {
        font-size: 30px;
    }

    .article-section h2 {
        font-size: 26px;
    }

    .article-section h3 {
        font-size: 26px;
    }

    .byline-image {
        width: 60px;
        height: 60px;
    }

    .adv-brand-text {
        font-size: 22px;
    }

    .adv-brand-logo {
        max-width: 140px;
    }

    .featured-logos {
        max-width: 250px;
    }

    .cta-section-heading {
        font-size: 26px;
    }

    .article-cta-section {
        padding: 40px 20px;
        margin: 40px -15px;
    }

    .cta-button-large {
        font-size: 18px;
        padding: 14px 30px;
    }

    .sticky-cta-button {
        font-size: 16px;
        padding: 14px 60px;
    }

    /* Add bottom padding to prevent content from hiding behind sticky CTA on mobile */
    body {
        padding-bottom: 70px;
    }
}

/* Desktop also needs bottom padding */
@media (min-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .sticky-cta-button {
        font-size: 18px;
        padding: 16px 120px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .container-article {
        padding: 0 15px;
    }

    .article-headline {
        font-size: 26px;
    }

    .article-byline {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .byline-image {
        width: 60px;
        height: 60px;
    }

    .article-section h2 {
        font-size: 24px;
    }

    .article-section h3 {
        font-size: 22px;
    }

    .testimonial-text {
        padding: 20px;
    }

    .sticky-cta-button {
        font-size: 14px;
        padding: 14px 40px;
    }
}

/* ===========================
   PRINT STYLES
=========================== */
@media print {
    .adv-meta-bar,
    .adv-navbar,
    .article-cta-button,
    .sticky-cta-mobile {
        display: none;
    }

    .article-content {
        max-width: 100%;
    }
}

/* ===========================
   ACCESSIBILITY
=========================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--pf-primary);
    outline-offset: 2px;
}

/* Ensure sufficient touch targets */
button,
a[href],
[role="button"] {
    min-height: 44px;
    min-width: 44px;
}
