/* ==========================================================================
   Jon Lewis Website - Shared Styles
   ========================================================================== */

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */

:root {
    --vibrant-blue: #0052FF;
    --off-white: #f8f8f8;
    --off-black: #1a1a1a;
    --white: #ffffff;
    --gray: #666;
    --border-color: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--off-white);
    color: var(--off-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--vibrant-blue);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.nav-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: opacity 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

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

.nav-links a.icon-link::after {
    display: none;
}

/* ==========================================================================
   Weather Widget
   ========================================================================== */

.weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ffffff !important;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.weather-icon {
    font-size: 18px;
    color: #ffffff !important;
}

.weather-temp {
    font-weight: 500;
    color: #ffffff !important;
}

/* ==========================================================================
   Social Icons
   ========================================================================== */

.social-icon {
    width: 20px;
    height: 20px;
    fill: var(--white);
    transition: opacity 0.3s;
}

.nav-links a:hover .social-icon,
.icon-link:hover .social-icon {
    opacity: 0.8;
}

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--vibrant-blue);
    color: var(--white);
    padding: 40px 60px;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
}

.footer-simple {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
}

.footer-simple span:last-child {
    font-style: italic;
}

/* ==========================================================================
   Blog Hero (shared across blog listing and blog posts)
   ========================================================================== */

.blog-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 60px 60px;
    background: var(--vibrant-blue);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.blog-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.blog-hero h1,
.blog-list-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
}

/* Blog List Hero (slightly different) */
.blog-list-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 60px 60px;
    background: var(--vibrant-blue);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.blog-list-hero h1 {
    font-size: clamp(64px, 12vw, 120px);
    line-height: 0.9;
    margin-bottom: 20px;
}

.blog-list-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Blog Meta (date, read time)
   ========================================================================== */

.blog-meta {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 500;
}

/* ==========================================================================
   Blog Content (article body)
   ========================================================================== */

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 60px;
    background: var(--off-white);
}

.blog-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--off-black);
    margin: 60px 0 25px 0;
}

.blog-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--off-black);
    margin: 40px 0 20px 0;
}

.blog-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 25px;
}

.blog-content p:first-of-type {
    font-size: 20px;
    color: var(--off-black);
    font-weight: 500;
}

.blog-content a {
    color: var(--vibrant-blue);
    text-decoration: none;
    border-bottom: 2px solid var(--vibrant-blue);
    transition: opacity 0.3s;
}

.blog-content a:hover {
    opacity: 0.7;
}

.blog-content ul,
.blog-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.blog-content li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 15px;
}

.blog-content blockquote {
    border-left: 4px solid var(--vibrant-blue);
    padding: 20px 30px;
    margin: 40px 0;
    background: rgba(0, 82, 255, 0.05);
    font-style: italic;
    color: var(--off-black);
}

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--vibrant-blue);
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-bottom: 2px solid var(--vibrant-blue);
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Blog Posts Grid (listing page)
   ========================================================================== */

.blog-posts-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 60px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.post-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 40px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--vibrant-blue);
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.1);
}

.post-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 15px;
}

.post-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--off-black);
}

.post-summary {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--vibrant-blue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-bottom: 2px solid var(--vibrant-blue);
    padding-bottom: 3px;
}

/* ==========================================================================
   Responsive - Mobile Navigation
   ========================================================================== */

@media (max-width: 768px) {
    .nav-content {
        padding: 20px 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .logo {
        font-size: 24px;
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 20px;
        right: 30px;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--vibrant-blue);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-right.active {
        right: 0;
    }

    .weather-widget {
        margin-bottom: 30px;
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: flex-start;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 20px 0;
        font-size: 16px;
    }

    .nav-links a::after {
        display: none;
    }

    /* Blog responsive */
    .blog-content {
        padding: 60px 30px;
    }

    .blog-posts-section {
        padding: 60px 30px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 30px;
    }

    /* Timeline Mobile */
    .timeline {
        gap: 15px;
    }

    .timeline-content {
        padding: 18px;
    }


    .timeline-content p {
        font-size: 15px;
    }
}

/* ==========================================================================
   About Section Timeline
   ========================================================================== */

.about-content {
    display: block;
}

.about-text {
    max-width: 100%;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: block;
}

.timeline-content {
    background: rgba(0, 82, 255, 0.04);
    padding: 22px 26px;
    border-radius: 8px;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.timeline-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.timeline-company {
    font-size: 16px;
    font-weight: 600;
    color: var(--off-black);
}

.timeline-years {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    order: -1;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
    font-weight: 300;
}
