/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: #1F2933;
    background-color: #F3F4F6;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Text', serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1F2933;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4C6FFF;
}

h3 {
    color: #1F2933;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: #1F2933;
}

a {
    color: #4C6FFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3A5AE6;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    padding: 3rem 4rem;
    position: sticky;
    top: 0;
    background-color: rgba(243, 244, 246, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(209, 213, 219, 0.5);
    transition: padding 0.3s ease;
}

.site-header.compact {
    padding: 1.5rem 4rem;
}

.header-content {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Satisfy', cursive;
    font-size: 80px;
    line-height:80px;
    font-weight: 400;
    color: #4C6FFF;
    text-decoration: none;
    letter-spacing: 0;
    display:block;
    transition: font-size 0.3s ease, line-height 0.3s ease;
}

.site-header.compact .logo a {
    font-size: 48px;
    line-height: 48px;
}

.logo a:hover {
    color: #4C6FFF;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav ul li a {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1F2933;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #4C6FFF;
}

.cta-button {
    background-color: transparent;
    border: 1px solid #4C6FFF;
    color: #4C6FFF;
    padding: 0.75rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #4C6FFF;
    color: #FAFAF7;
    border-color: #4C6FFF;
}

/* ============================================
   WORK GRID PAGE
   ============================================ */
.work-grid-page {
    min-height: calc(100vh - 200px);
}

.home-intro {
    padding: 6rem 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.home-intro h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #1F2933;
}

.intro-subhead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #1F2933;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
}

/* Center the last item if it's alone in the last row - desktop only */
@media (min-width: 1025px) {
    .work-grid .client-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

.client-card {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    cursor: pointer;
}

.client-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.client-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 244, 246, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.client-overlay h3 {
    font-size: 3rem;
    color: #1F2933;
    text-align: center;
    font-weight: 600;
}

.client-card:hover .client-image img {
    transform: scale(1.1);
    filter: blur(4px);
}

.client-card:hover .client-overlay {
    opacity: 1;
}

.client-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* ============================================
   WORK DETAIL PAGE
   ============================================ */
.work-detail-page {
    width: 100%;
}

.work-hero {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 4rem;
}

.work-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.work-intro {
    padding: 8rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.work-intro h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.work-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #1F2933;
}

.client-name {
    font-size: 1.7rem;
    color: #4C6FFF;
    display: inline;
}

.work-pieces {
    width: 100%;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Two-column grid for Engledow print ads */
.engledow-print-ads {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 2000px;
    margin: 0 auto;
}

.engledow-print-ads .work-piece {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Center the third item (alone in second row) */
.engledow-print-ads .work-piece:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
}

.work-piece {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    display: block;
}

.work-piece img,
.work-piece video {
    width: 100%;
    height: auto;
    display: block;
}

.work-piece video {
    width: 100%;
    height: auto;
    display: block;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    background-color: #F3F4F6;
}

/* Responsive YouTube/video embed wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background-color: #F3F4F6;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.work-piece iframe {
    width: 100%;
    height: auto;
    min-height: 600px;
    display: block;
    background-color: #F3F4F6;
}

.work-piece iframe.pdf-embed {
    height: 850px;
    min-height: 850px;
}

.work-piece .asset-label {
    padding-left: 0;
    padding-right: 0;
}

.asset-label {
    text-align: center;
    padding: 1rem 2rem;
    color: #6B7280;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.video-placeholder {
    text-align: center;
    padding: 2rem;
    color: #6B7280;
    font-style: italic;
}

/* Campaign sections for multi-campaign pages */
.campaign-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(209, 213, 219, 0.5);
}

.campaign-section:first-of-type {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}

/* Reduce spacing for WVPA first campaign */
.work-detail-page .campaign-section:first-of-type {
    margin-top: 1rem;
}

/* Reduce bottom padding on Hancock page intro section */
.work-detail-page.work-hancock-page .work-intro {
    padding-bottom: 2rem;
}

.campaign-header {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 4rem;
}

.campaign-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1F2933;
}

.campaign-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1F2933;
}

.campaign-description em {
    color: #4C6FFF;
    font-style: italic;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-page {
    min-height: calc(100vh - 200px);
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-hero {
    max-width: 1100px;
    margin: 0 auto 8rem;
    text-align: center;
}

/* About page specific spacing */
.services-page .services-hero {
    margin-bottom: 3rem;
}

.services-hero h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #1F2933;
}

.services-intro-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #1F2933;
    margin-bottom: 2rem;
    font-weight: 400;
}

.services-intro-description {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #1F2933;
    max-width: 800px;
    margin: 0 auto;
}

/* About page image wrapper */
.about-image-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4rem 3rem;
}

.services-bring-me-in {
    max-width: 800px;
    margin: 0 auto 8rem;
    padding: 4rem 0;
    border-top: 1px solid rgba(209, 213, 219, 0.5);
    border-bottom: 1px solid rgba(209, 213, 219, 0.5);
}

.services-bring-me-in h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: #1F2933;
}

.bring-me-in-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bring-me-in-list li {
    padding-left: 2rem;
    position: relative;
    color: #1F2933;
    font-size: 1.1rem;
    line-height: 1.8;
}

.bring-me-in-list li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #4C6FFF;
    font-size: 1.2rem;
}

.services-offerings {
    margin-bottom: 8rem;
}

.services-offerings h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #1F2933;
    text-align: center;
}

.offering-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.offering-card {
    padding: 3rem;
    background-color: rgba(243, 244, 246, 0.5);
    border: 1px solid rgba(209, 213, 219, 0.5);
    transition: border-color 0.3s ease;
}

.offering-card:hover {
    border-color: rgba(76, 111, 255, 0.4);
}

.offering-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1F2933;
}

.offering-duration {
    font-size: 1rem;
    color: #1F2933;
    margin-bottom: 1.5rem;
    font-style: italic;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(209, 213, 219, 0.5);
}

.offering-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #1F2933;
    margin-bottom: 1.5rem;
}

.offering-best-for {
    font-size: 0.95rem;
    color: #1F2933;
    line-height: 1.7;
    color: #1F2933;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(209, 213, 219, 0.5);
}

.offering-best-for strong {
    color: #4C6FFF;
    font-weight: 500;
}

.services-who {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
    border-top: 1px solid rgba(209, 213, 219, 0.5);
}

.services-who h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1F2933;
}

.who-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1F2933;
    margin-bottom: 2rem;
}

.industry-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.industry-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #1F2933;
    font-size: 1rem;
}

.industry-list li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #4C6FFF;
}

.who-note {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6B7280;
    font-style: italic;
    padding-top: 2rem;
    border-top: 1px solid rgba(209, 213, 219, 0.5);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 8rem 4rem;
    text-align: center;
    background-color: rgba(229, 231, 235, 0.5);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: #1F2933;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 3rem 4rem;
    text-align: center;
    border-top: 1px solid rgba(209, 213, 219, 0.5);
}

.header-sentinel {
    position: absolute;
    top: 0; /* actual threshold offset is set in JS */
    left: 0;
    height: 1px;
    width: 1px;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
}

.footer-content p {
    color: #6B7280;
    font-size: 0.9rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 41, 51, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #F3F4F6;
    padding: 3rem;
    border: 1px solid rgba(209, 213, 219, 0.5);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #1F2933;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: #4C6FFF;
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1F2933;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1F2933;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #FFFFFF;
    border: 1px solid rgba(209, 213, 219, 0.8);
    color: #1F2933;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4C6FFF;
}

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

.submit-button {
    width: 100%;
    background-color: #4C6FFF;
    border: 1px solid #4C6FFF;
    color: #FAFAF7;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #3A5AE6;
    border-color: #3A5AE6;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
    .site-header {
        padding: 3rem 2.5rem;
    }
    .site-header.compact {
        padding: 1.5rem 2.5rem;
    }
    .logo a {
        font-size: 64px;
        line-height: 64px;
    }
    .site-header.compact .logo a {
        font-size: 38px;
        line-height: 38px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .logo a {
        font-size: 45px;
        line-height: 45px;
    }
    .site-header.compact .logo a {
        font-size: 27px;
        line-height: 27px;
    }
}
@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: 1fr;
    }

    .client-card {
        height: 40vh;
    }

    h1 {
        font-size: 3rem;
    }

    .work-intro h1 {
        font-size: 3rem;
    }

    .services-intro h1 {
        font-size: 3rem;
    }
    .site-header {
        padding: 1.5rem 1rem;
        position: static;
    }

    .site-header.compact {
        padding: 1.5rem 1rem;
    }

    .site-header.compact .logo a {
        font-size: 35px;
        line-height: 35px;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .logo a {
        font-size: 35px;
        line-height:35px;
    }

    .main-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 1.5rem;
        width: auto;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .cta-button {
        width: auto;
    }

    .home-intro {
        padding: 4rem 2rem;
    }

    .home-intro h1 {
        font-size: 2.5rem;
    }

    /* Reduce side padding on about text and image wrapper */
    .services-intro-description {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .about-image-wrap {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Ensure nav fits on small screens */
    .main-nav ul {
        padding: 0 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .work-pieces {
        padding: 0 2rem;
    }

    /* Engledow print ads stack on mobile */
    .engledow-print-ads {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-page {
        padding: 4rem 2rem;
    }

    .services-hero h1 {
        font-size: 2.5rem;
    }

    .services-intro-text {
        font-size: 1.25rem;
    }

    .services-intro-description {
        font-size: 1.1rem;
    }

    .services-bring-me-in h2,
    .services-offerings h2,
    .services-who h2 {
        font-size: 2rem;
    }

    .offering-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .offering-card {
        padding: 2rem;
    }

    .industry-list {
        grid-template-columns: 1fr;
    }

    .work-intro,
    .cta-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .campaign-header {
        padding: 0 2rem;
    }

    .campaign-header h2 {
        font-size: 2rem;
    }

    .work-piece iframe {
        min-height: 400px;
    }

    .work-hero {
        padding: 0 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .work-intro h1,
    .services-intro h1 {
        font-size: 2.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}

