/* ArcheryTech Solutions - style.css (Complete & Updated) */

/* --- ROOT VARIABLES & GLOBAL STYLES --- */
:root {
    --deep-forest-green: #1E3A1B;
    --crisp-white: #FFFFFF;
    --target-red: #D72638;
    --slate-gray: #374151;
    --accent-yellow: #FACC15;
    --light-gray-bg: #f8f9fa;

    --font-headline: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Blog Specific Fonts */
    --font-blog-headline: 'Playfair Display', serif;
    --font-blog-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Offset for fixed header height */
}

body {
    font-family: var(--font-body);
    background-color: var(--crisp-white);
    color: var(--slate-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER & NAVIGATION --- */
.header {
    background-color: var(--deep-forest-green);
    padding: 10px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--crisp-white);
    font-family: var(--font-headline);
    font-size: 1.5rem;
    gap: 12px;
}

.logo-image {
    height: 45px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--crisp-white);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 6px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--crisp-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    color: var(--accent-yellow);
    background-color: rgba(250, 204, 21, 0.1);
}

/* --- MOBILE MENU STYLES --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--crisp-white);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* --- GENERAL SECTION STYLING --- */
.page-section {
    padding: 80px 0;
}

main > .page-section:first-child {
    padding-top: 150px; /* Give space for fixed header on non-hero pages */
}
#home.hero, /* If hero is first, no extra padding needed for the next section */
main > .hero {
    padding-top: 70px; /* Only account for header height on hero */
}

.page-section.alt-bg { background-color: var(--light-gray-bg); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 90%;
}

.section-title {
    font-family: var(--font-headline);
    font-size: 2.8rem;
    color: var(--deep-forest-green);
    text-align: center;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--target-red);
    margin: 10px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--slate-gray);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- UTILITY & COMPONENT STYLES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-red { background-color: var(--target-red); color: var(--crisp-white); }
.btn-red:hover { background-color: #b81f2f; transform: translateY(-3px) scale(1.05); box-shadow: 0 4px 15px rgba(215, 38, 56, 0.4); }
.btn-ghost { background-color: transparent; color: var(--crisp-white); border-color: var(--crisp-white); }
.btn-ghost:hover { background-color: var(--crisp-white); color: var(--deep-forest-green); transform: translateY(-3px); }
.page-section .btn-ghost { color: var(--target-red); border-color: var(--target-red); }
.page-section .btn-ghost:hover { background-color: var(--target-red); color: var(--crisp-white); }

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--target-red);
    color: var(--crisp-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* --- HERO SECTION (#home) --- */
.hero {
    background-image: linear-gradient(rgba(20, 30, 20, 0.75), rgba(40, 50, 40, 0.75)), url('../images/bg.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crisp-white);
    padding-bottom: 50px;
}

.hero-content {
    display: flex;
    flex-direction: row; /* Side-by-side on desktop */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 50px;
}

.hero-text {
    text-align: left; /* Text aligned left on desktop */
    flex-basis: 50%;
}
.hero-text h1 { font-family: var(--font-headline); font-size: 3.0rem; margin-bottom: 20px; line-height: 1.2; }
.hero-text p { font-size: 1.3rem; margin-bottom: 30px; }
.hero-text .btn { margin: 0 10px; }
.hero-mockup {
    flex-basis: 45%;
    background-color: rgba(55, 65, 81, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 12px;
    max-width: 500px;
    height: auto;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

}

/* --- SERVICES SECTION (#services) --- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-item { background-color: var(--crisp-white); padding: 30px; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.service-icon { font-size: 3.5rem; color: var(--target-red); margin-bottom: 20px; line-height: 1; }
.service-item h3 { color: var(--deep-forest-green); font-size: 1.5rem; margin-bottom: 15px; font-family: var(--font-body); font-weight: 700; }

/* --- HOW IT WORKS SECTION (#how-it-works) --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--deep-forest-green); top: 0; bottom: 0; left: 50%; margin-left: -2px; z-index: 1; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; z-index: 2; }
.timeline-item.timeline-left { left: 0; }
.timeline-item.timeline-right { left: 50%; }
.timeline-content { padding: 25px 30px; background-color: var(--crisp-white); position: relative; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-left: 5px solid var(--target-red); }
.timeline-right .timeline-content { border-left: none; border-right: 5px solid var(--target-red); }
.timeline-content h3 { font-size: 1.4rem; color: var(--deep-forest-green); margin-bottom: 10px; }

/* --- CONTACT / BOOKING SECTION (#contact) --- */
.contact-container { display: flex; flex-direction: column; gap: 40px; background-color: var(--crisp-white); padding: 30px; border-radius: 12px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.contact-bg-target { position: absolute; right: -80px; bottom: -80px; width: 250px; height: 250px; opacity: 0.08; stroke: var(--slate-gray); animation: subtleRotateTarget 40s linear infinite; }
@keyframes subtleRotateTarget { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.contact-form, .contact-info { flex: 1; z-index: 2; }
.contact-form h3, .contact-info h3 { font-family: var(--font-body); font-weight: 700; color: var(--deep-forest-green); margin-bottom: 20px; font-size: 1.6rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 6px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--target-red); outline: none; box-shadow: 0 0 0 3px rgba(215, 38, 56, 0.2); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input[type="file"] { padding: 0; border: none; box-shadow: none; }
.form-group input[type="file"]::file-selector-button { font-family: var(--font-body); font-weight: 700; color: var(--target-red); background-color: transparent; border: 2px solid var(--target-red); padding: 10px 15px; border-radius: 6px; cursor: pointer; transition: all 0.3s ease; margin-right: 15px; }
.form-group input[type="file"]::file-selector-button:hover { background-color: var(--target-red); color: var(--crisp-white); }
.contact-info p { margin-bottom: 15px; line-height: 1.7; }
.contact-info strong { color: var(--deep-forest-green); }

/* --- FOOTER --- */
.footer { background: var(--slate-gray); color: var(--crisp-white); text-align: center; padding: 25px 20px; }
.footer-links { margin-bottom: 1rem; }
.footer-links a { color: var(--crisp-white); text-decoration: none; margin: 0 10px; }
.footer-links a:hover { text-decoration: underline; }

/* --- BLOG LISTING PAGE STYLES --- */
.blog-header { background: linear-gradient(rgba(20, 30, 20, 0.8), rgba(40, 50, 40, 0.8)), url('../images/bg.png'); background-size: cover; background-position: center; color: var(--crisp-white); padding: 150px 0 80px; text-align: center; }
.blog-header h1 { font-family: var(--font-blog-headline); font-size: 3.5rem; margin-bottom: 20px; }
.blog-post-item { display: flex; flex-direction: column; background-color: var(--crisp-white); border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-post-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.blog-post-image { width: 100%; height: 220px; object-fit: cover; }
.blog-post-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-post-title { font-family: var(--font-blog-headline); color: var(--deep-forest-green); font-size: 1.5rem; line-height: 1.2; margin-bottom: 15px; font-weight: 700; }
.blog-post-meta { font-family: var(--font-blog-body); color: var(--slate-gray); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.blog-post-excerpt { font-family: var(--font-blog-body); color: var(--slate-gray); font-size: 16px; line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.blog-read-more { display: inline-block; padding: 10px 20px; background-color: var(--target-red); color: var(--crisp-white); text-decoration: none; border-radius: 6px; font-weight: 600; font-size: 0.95rem; transition: background-color 0.3s ease; align-self: flex-start; }
.blog-read-more:hover { background-color: #b81f2f; }


/* --- SINGLE BLOG POST STYLES --- */
.blog-article-full { max-width: 800px; margin: 0 auto; }
.blog-article-title.section-title { font-family: var(--font-blog-headline); text-align: left; font-size: 3rem; line-height: 1.1; margin-bottom: 10px; }
.blog-article-title.section-title::after { margin-left: 0; }
.blog-article-meta { font-family: var(--font-blog-body); font-size: 0.95rem; color: #6c757d; margin-bottom: 2rem; display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-article-image { width: 100%; height: auto; border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.blog-article-body { font-family: var(--font-blog-body); font-size: 1.125rem; line-height: 1.8; color: var(--slate-gray); }
.blog-article-body h2, .blog-article-body h3 { font-family: var(--font-blog-headline); color: var(--deep-forest-green); margin-top: 2.5rem; margin-bottom: 1rem; }
.blog-article-body p { margin-bottom: 1.5rem; }
.roster-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.roster-column h3 { font-size: 1.5rem; border-bottom: 2px solid var(--accent-yellow); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.roster-column h4 { font-size: 1.2rem; color: var(--slate-gray); margin-top: 1rem; margin-bottom: 0.5rem; }
.roster-column ul { list-style: none; padding-left: 0; }
.roster-column li { padding: 0.25rem 0; }

/* --- RESPONSIVE & MOBILE STYLES --- */
@media (max-width: 850px) {
    /* HERO SECTION ADJUSTMENTS */
    .hero-content {
        flex-direction: column; /* Stacks text and video on mobile */
        gap: 30px;
        padding-top: 30px;
    }
    .hero-text {
        text-align: center; /* Ensures text is centered on mobile */
    }
    .hero-mockup {
        width: 80%;
        max-width: 450px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }

    /* --- MOBILE NAVIGATION --- */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--deep-forest-green);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    .nav-menu.active-mobile {
        display: flex;
    }
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        display: block;
        padding: 15px 0;
        border-radius: 0;
    }
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* --- TIMELINE ADJUSTMENTS --- */
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item.timeline-left, .timeline-item.timeline-right {
        left: 0;
    }
    .timeline-left .timeline-icon, .timeline-right .timeline-icon {
        left: 6px;
    }

    /* --- ABOUT US --- */
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-text h3 {
        font-size: 1.6rem;
    }

    /* --- BLOG --- */
    .featured-post-container {
        flex-direction: column;
    }
    .featured-post-image {
        min-height: 250px;
    }
    
    /* Article Title Scaling */
    .blog-article-title.section-title {
        font-size: 2.0rem;
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }
    .blog-article-title.section-title {
        font-size: 1.7rem;
    }
    .hero-text h1 {
        font-size: 2.0rem;
    }
    .hero-text p {
        font-size: 1.1rem;
    }
    .contact-container {
        padding: 20px;
    }
}

/* --- ABOUT US SECTION --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}
.about-image {
    flex-basis: 40%;
    flex-shrink: 0;
}
.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-text {
    flex-basis: 60%;
}
.about-text h3 {
    font-size: 1.8rem;
    color: var(--deep-forest-green);
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 700;
}
.about-text p {
    margin-bottom: 20px;
}

/* --- BLOG FILTERS & CATEGORIES --- */
.blog-filters {
    text-align: center;
    margin-bottom: 40px;
}
.filter-btn {
    background: none;
    border: 2px solid var(--slate-gray);
    color: var(--slate-gray);
    padding: 8px 20px;
    border-radius: 20px;
    margin: 5px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background-color: var(--slate-gray);
    color: var(--crisp-white);
}
.filter-btn.active {
    background-color: var(--target-red);
    border-color: var(--target-red);
    color: var(--crisp-white);
}
.category-badge {
    display: inline-block;
    background-color: var(--deep-forest-green);
    color: var(--crisp-white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.blog-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* --- FEATURED BLOG POST --- */
.featured-post-container {
    display: flex;
    gap: 30px;
    background-color: var(--light-gray-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.featured-post-image {
    flex-basis: 50%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}
.featured-post-content {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-badge {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--deep-forest-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    align-self: flex-start;
}
.featured-post-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--deep-forest-green);
    margin-bottom: 15px;
}
.featured-post-excerpt {
    margin-bottom: 25px;
    line-height: 1.7;
}


/* --- ANIMATED TIMELINE ICONS --- */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.8rem;
    text-align: center;
    background-color: var(--deep-forest-green);
    color: var(--crisp-white);
    border: 3px solid var(--crisp-white);
    box-shadow: 0 0 0 4px var(--deep-forest-green);
    border-radius: 50%;
    top: 25px;
    z-index: 3;
    /* Animation setup */
    opacity: 0;
    transform: scale(0.5);
}

.timeline-left .timeline-icon {
    right: -25px;
}

.timeline-right .timeline-icon {
    left: -25px;
}

/* Keyframe animation for the pop effect */
@keyframes icon-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Trigger the animation when the element scrolls into view */
.timeline-item.is-visible .timeline-icon {
    animation: icon-pop 0.5s ease-out 0.2s forwards;
}
