/* ========================================
   AGILE MEDIA MARKETING - PARALLAX STYLES
   Sticky Image Reveal / Parallax Effect
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors - matched from original site */
    --color-primary: #0076a9;
    --color-text: #212529;
    --color-text-light: #6c757d;
    --color-bg-white: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-border: #dee2e6;
    --color-footer-bg: #343a40;

    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --header-height: 70px;
    --section-padding: 60px;
    --container-max-width: 1200px;

    /* Parallax section height */
    --parallax-height: 50vh;
    --parallax-height-hero: 80vh;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg-white);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-bg-white);
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

/* ========================================
   MAIN CONTENT - Offset for fixed header
   ======================================== */

main {
    padding-top: var(--header-height);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   PARALLAX SECTIONS
   The key effect: background-attachment: fixed
   creates the "sticky image" reveal effect
   ======================================== */

.parallax-section {
    position: relative;
    height: var(--parallax-height);
    overflow: hidden;

    /* THE KEY PROPERTIES - Applied directly to section */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parallax-section.hero-section {
    height: var(--parallax-height-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hero content - positioned over the fixed background */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.hero-title {
    color: var(--color-bg-white);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--color-bg-white);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-bg-white);
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-cta:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* ========================================
   CONTENT SECTIONS (Solid blocks)
   These scroll over the parallax images
   ======================================== */

.content-section {
    position: relative;
    background: var(--color-bg-white);
    padding: var(--section-padding) 0;
    z-index: 1;
}

.content-section.alt-bg {
    background: var(--color-bg-light);
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 30px;
    text-align: center;
}

/* ========================================
   INTRO SECTION
   ======================================== */

.intro-section {
    background: var(--color-bg-white);
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
    background: var(--color-bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    padding: 25px;
    background: var(--color-bg-light);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    background: var(--color-bg-light);
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   TEAM SECTION
   ======================================== */

.team-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin: 50px 0 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    padding: 25px;
    background: var(--color-bg-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--color-primary);
}

.team-member h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
}

.team-role {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ========================================
   FORM MESSAGES
   ======================================== */

.form-message {
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

.form-message h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.form-message p {
    margin: 0;
}

/* ========================================
   BLOG POST PAGE
   ======================================== */

.blog-post-page {
    padding-top: var(--header-height);
}

.blog-post-header {
    background: var(--color-bg-light);
    padding: 60px 0;
    text-align: center;
}

.blog-post-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.3;
}

.blog-post-date {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.blog-post-content {
    padding: 60px 0;
}

.blog-post-content .container {
    max-width: 750px;
}

.blog-post-content .intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 30px;
}

.blog-post-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 20px;
}

.blog-post-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--color-text);
    margin: 45px 0 20px;
}

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

.blog-post-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 10px;
}

.blog-post-content strong {
    font-weight: 600;
    color: var(--color-text);
}

.blog-post-content blockquote {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.blog-post-content blockquote p {
    margin-bottom: 10px;
}

.blog-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-cta {
    background: var(--color-bg-light);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
}

.blog-cta h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 15px;
}

.blog-cta p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 28px;
    }

    .blog-post-content h2 {
        font-size: 22px;
    }

    .blog-cta {
        padding: 30px 20px;
    }
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-section {
    background: var(--color-bg-white);
}

.blog-card {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.blog-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.blog-title a:hover {
    text-decoration: underline;
}

.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-grid-home .blog-card {
    background: var(--color-bg-light);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-grid-home .blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-grid-home .blog-title {
    font-size: 17px;
    margin-bottom: 10px;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 10px 0;
}

.blog-date {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    background: var(--color-bg-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px;
    background: var(--color-bg-white);
    padding: 30px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    display: block;
    font-size: 12px;
    color: var(--color-text-light);
    text-align: right;
    margin-top: 5px;
}

.submit-btn {
    background: var(--color-primary);
    color: var(--color-bg-white);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #005a87;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.location h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
}

.location p {
    font-size: 14px;
    color: var(--color-text-light);
}

.social-links {
    text-align: center;
}

.social-links p {
    font-size: 14px;
    margin-bottom: 8px;
}

.social-links a {
    color: var(--color-primary);
    text-decoration: none;
}

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

.contact-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.contact-social-icons .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    border-radius: 50%;
    color: var(--color-bg-white);
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-social-icons .social-icon:hover {
    background: #005a87;
    transform: translateY(-3px);
}

.contact-social-icons .social-icon svg {
    width: 22px;
    height: 22px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--color-footer-bg);
    color: var(--color-bg-white);
    padding: 50px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-bg-white);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-locations ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.footer-locations li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.footer-hours {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-bg-white);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-bg-white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        gap: 10px;
    }
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    :root {
        --parallax-height: 40vh;
        --parallax-height-hero: 50vh;
        --section-padding: 40px;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo {
        font-size: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-cta {
        padding: 14px 30px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .intro-text {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* MOBILE PARALLAX FIX
       background-attachment: fixed can be janky on iOS
       Use scroll fallback for smoother mobile experience */
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ========================================
   SMOOTH SCROLL BEHAVIOR
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-item {
        transition: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .parallax-section {
        display: none;
    }

    main {
        padding-top: 0;
    }

    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ========================================
   FOOTER CREDIT
   ======================================== */

.website-credit {
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.website-credit a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.website-credit a:hover {
    color: var(--color-bg-white);
    text-decoration: underline;
}

/* ========================================
   COOKIES CONSENT BANNER
   ======================================== */

.cookies-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-footer-bg);
    color: var(--color-bg-white);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookies-consent.show {
    transform: translateY(0);
}

.cookies-consent-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookies-consent-content p {
    flex: 1;
    min-width: 250px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookies-consent-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.cookies-consent-content a:hover {
    text-decoration: underline;
}

.cookies-consent-buttons {
    display: flex;
    gap: 10px;
}

.cookies-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cookies-btn-accept {
    background: var(--color-primary);
    color: var(--color-bg-white);
}

.cookies-btn-accept:hover {
    background: #005a87;
}

.cookies-btn-decline {
    background: transparent;
    color: var(--color-bg-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookies-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .cookies-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookies-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}
