/* Custom Text Selection Highlight */
::selection {
    background: rgb(255, 254, 128);
    color: black;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll from wide text */
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding-top: 80px; /* Offset for fixed header */
}

.hero-about {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    padding-top: 80px; /* Offset for fixed header */
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video scales to cover without distortion */
    z-index: -1;
}

/* Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95); /* White with slight opacity */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: #000; /* Black text */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Text Logo */
.logo {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -1px;
    color: #000; /* Black text */
}

/* Local Time (Centered) */
.local-time {
    font-size: 0.8rem;
    flex: 1;
    text-align: center;
    color: #000; /* Black text */
    font-family: Arial, sans-serif;
}

/* Menu Links */
.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    color: #000; /* Black text */
    text-decoration: none;
    font-size: 1.0rem;
    position: relative; /* For positioning the underline */
    transition: color 0.3s; /* Keep color transition for smoothness */
}

.menu a::after {
    content: '';
    display: block; /* Ensure underline renders */
    position: absolute;
    width: 0;
    height: 2px; /* Underline thickness */
    bottom: -1px; /* Position below text */
    left: 0;
    background-color: #000; /* Black underline */
    transition: width 0.3s ease; /* Animate width from left to right */
}

.menu a:hover::after {
    width: 100%; /* Expand underline to full width on hover */
}

.menu a:hover {
    color: #000; /* Keep text black on hover */
}

/* Burger Menu Icon */
.burger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 11;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #000; /* Black lines */
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* Text Block Section */
.text-block {
    max-width: 1000px;
    margin: 30px auto 30px auto;
    padding: 0 40px;
    text-align: left;
    color: #333; /* Dark text for readability on white/default bg */
}

.text-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.text-block p {
    font-size: 28pt;
    line-height: 1.3;
    margin-bottom: 1em;
}

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

/* Pre-Column Text Section */
.pre-column-text {
    max-width: 90%;
    margin: 30px auto;
    padding: 0 40px;
}

.pre-column-text .text-container {
    width: 50%;
    text-align: left;
    color: #333;
    margin-top: 100px;
    margin-bottom: 100px;
}

.pre-column-text p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

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

/* Two-Column Section */
.two-column {
    display: flex;
    width: 90%; /* 90% viewport width, wider than text-block */
    margin: 30px auto;
    padding: 0 40px;
}

.column-text {
    width: 50%;
    padding-right: 20px;
    color: #333;
}

.column-text .strategy-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 10px;
}

.column-text .strategy-line {
    width: 100%;
    height: 1px;
    background: #000;
    margin-bottom: 10px;
}

.column-text .strategy-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 10px;
}

.column-text h2 {
    font-size: 28pt;
    font-weight: 400;
    margin-bottom: 15px;
}

.column-text p {
    font-size: 1.2rem; /* Smaller than original 28pt for readability */
    line-height: 1.5;
    margin-bottom: 1em;
    color: #333;
}

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

.column-image {
    width: 50%;
    padding-left: 20px;
}

.column-image img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Scales image to fill column without distortion */
    display: block;
}

/* Scrolling Columns Effect in Hero */
.scrolling-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%; /* Full height of .column-image */
    overflow: hidden;
    position: relative;
}

.image-column {
    flex: 0 0 22%; /* Each column ~22% of .column-image width, with gaps */
    height: 100%; /* Full height of hero */
    overflow: hidden;
    position: relative;
}

.image-column img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.8; /* Subtle transparency for visual appeal */
}

.image-column.up {
    animation: scroll-up 40s linear infinite;
}

.image-column.down {
    animation: scroll-down 40s linear infinite;
}

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20.00%); } /* Move up by 2/3 (since 3 images) */
}

@keyframes scroll-down {
    0% { transform: translateY(-20.00%); } /* Start offset to avoid gap */
    100% { transform: translateY(0.00%); } /* Move down by 2/3 */
}

/* Stagger animations for smoother effect */
.image-column:nth-child(1) { animation-delay: 0s; }
.image-column:nth-child(2) { animation-delay: 0s; }
.image-column:nth-child(3) { animation-delay: 0s; }
.image-column:nth-child(4) { animation-delay: 0s; }

/* Mobile: Stack columns horizontally or reduce to fewer columns */
@media (max-width: 768px) {
    .scrolling-columns {
        flex-direction: column;
        height: auto; /* Adjust for stacked layout */
    }

    .image-column {
        flex: 0 0 100%; /* Full width on mobile */
        height: 200px; /* Fixed height for each column */
        margin-bottom: 10px;
    }

    .image-column img {
        opacity: 0.6; /* Slightly more transparent for mobile */
        animation-duration: 40s; /* Slower for mobile */
    }
}

/* Audit Section (Two-Column with Form) */
.audit-section .column-form {
    width: 50%;
    padding-left: 20px;
    
}

.audit-form {
    max-width: 100%;
}

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

.audit-form .form-group label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
}

.audit-form .form-group input,
.audit-form .form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    color: #333;
}

.audit-form .form-group textarea {
    resize: vertical; /* Allow vertical resize only */
}

.audit-form button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.audit-form button:hover {
    background: #333;
}

/* Services Grid Section */
.services-grid-section {
    max-width: 1600px;
    margin: 30px auto;
    padding: 0 40px;
    text-align: left;
}

.services-grid-section h2 {
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.services-grid-section .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px;
}

.service-item {
    text-align: left;
}

.service-item .strategy-line {
    width: 100%;
    height: 1px;
    background: #000;
    margin-bottom: 10px;
}

.service-item .strategy-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 10px;
}

.service-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.service-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

/* CTA Button (Shared) */
.section-cta {
    display: inline-block;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.section-cta:hover {
    background: #333;
}

/* Hero CTA */
.hero-cta {
    display: block;
    width: 200px;
    text-align: center;
    padding: 12px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
    margin: 20px auto 0;
    position: relative;
    z-index: 5;
}

.hero-cta:hover {
    background: #333;
}

/* Services Section */
.services-section {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 40px;
    text-align: center;
}

.services-section h2 {
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 20px;
}

.services-section .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

/* Testimonials Section */
.testimonials-section {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 40px;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.testimonial-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}

.testimonial-item .author {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
}

/* CTA Section */
.cta-section {
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px;
    background: #f5f5f5; /* Light gray for contrast */
    text-align: center;
}

.cta-section h2 {
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
}

/* Klaviyo Hero Section */
.klaviyo-hero {
    max-width: 1000px;
    margin: 100px auto 30px auto;
    padding: 0 40px;
    text-align: center;
}

.klaviyo-hero h1 {
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 15px;
}

.klaviyo-hero p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
}

/* Klaviyo Features Section */
.klaviyo-features {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 40px;
    text-align: center;
}

.klaviyo-features h2 {
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Klaviyo Results Section */
.klaviyo-results {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 40px;
    text-align: center;
}

.klaviyo-results h2 {
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.result-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

/* Contact Section */
.contact-section {
    max-width: 1000px;
    margin: 100px auto 30px auto; /* Extra top margin to clear fixed header */
    padding: 0 40px;
    text-align: left;
    color: #333;
    font-size: 1.6rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.contact-form h2 {
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px; /* Reduced slightly to fit more fields */
}

.form-group label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    color: #333;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize only */
}

.contact-form button {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #333;
}

.contact-details {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-details p {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-details a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #666;
}

/* Privacy Policy Section */
.privacy-section {
    max-width: 1000px;
    margin: 100px auto 30px auto; /* Extra top margin to clear fixed header */
    padding: 0 40px;
    text-align: left;
    color: #333;
}

.privacy-section h1 {
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 20px;
}

.privacy-section .intro {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0 15px;
}

.privacy-section p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.privacy-section ul {
    list-style: disc;
    margin: 15px 0;
    padding-left: 20px;
}

.privacy-section li {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.privacy-section a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-section a:hover {
    color: #666;
}

/* Bottom-Left Text (Now Absolute in Hero) */
.bottom-text {
    position: absolute;
    bottom: 20px;
    left: 40px;
    color: #fff;
    font-size: 8rem;
    font-weight: 500;
    z-index: 5; /* Above video, below header */
    line-height: 1.1; /* Tighten line height for stacked words */
    padding: 0; /* Remove padding since positioned absolutely */
}

.type-line {
    display: block;
    overflow: hidden; /* Hide partial text during typing */
    white-space: nowrap; /* Prevent wrapping within line */
}

/* Footer */
.footer {
    background: rgb(255, 254, 128);
    width: 100%;
    padding: 10px 0; /* Slight padding for spacing */
    text-align: left;
}

.footer-text {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: calc(100vw / 6); /* Stretched base size for 10 chars */
    font-weight: 700; /* Bold */
    letter-spacing: 0.01vw; /* Reduced to avoid overflow */
    color: #000;
    width: 100%;
    max-width: 100%; /* Ensure it stays within viewport */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    margin: 20px 0 0 0; /* Vertical centering, no bottom margin for new bar */
    white-space: nowrap;
    text-transform: uppercase;
    overflow: hidden; /* Clip both x and y overflow */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin: 10px 0 20px 0;
    font-size: 0.8rem;
    color: #000; /* Subtle gray */
}

.copyright {
    font-weight: 400;
}

.privacy-policy {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-policy:hover {
    color: #000;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .local-time {
        font-size: 1rem;
        order: 3; /* Move time below on small screens */
        width: 100%;
        text-align: center;
    }

    .menu {
        display: none; /* Hide menu on mobile by default */
        position: absolute;
        top: 100%; /* Below header */
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9); /* Dark overlay for readability over video */
        padding: 20px 0;
        gap: 0;
        transform: translateY(-10px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .menu a {
        padding: 15px 20px;
        text-align: center;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        color: #fff; /* White text on dark mobile menu */
    }

    .menu a::after {
        background-color: #fff; /* White underline for mobile menu */
        display: block; /* Ensure underline renders */
    }

    .menu a:hover::after {
        width: 100%; /* Expand underline on hover */
    }

    .menu a:hover {
        color: #fff; /* Keep white text on hover */
    }

    .menu a:last-child {
        border-bottom: none;
    }

    .burger {
        display: flex; /* Show burger on mobile */
        order: 4; /* Position after time */
    }

    .bottom-text {
        font-size: 2.5rem;
        bottom: 15px;
        left: 20px;
        text-align: center; /* Center on mobile */
    }

    .hero-cta {
        width: 100%;
        max-width: 200px;
        margin: 20px auto 0;
    }

    .text-block {
        padding: 0 20px;
        margin: 20px auto 20px auto;
    }

    .text-block h2 {
        font-size: 1.2rem;
    }

    .text-block p {
        font-size: 24pt;
    }

    .pre-column-text {
        padding: 0 20px;
        margin: 20px auto;
    }

    .pre-column-text .text-container {
        width: 100%; /* Full width on mobile */
    }

    .pre-column-text p {
        font-size: 1rem;
    }

    .two-column {
        flex-direction: column;
        width: 90%;
        padding: 0 20px;
        margin: 20px auto;
    }

    .column-text {
    width: 50%;
    padding-right: 20px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keep text left-aligned */
    justify-content: center; /* Center vertically */
    min-height: calc(100vh - 80px); /* Match hero height minus header padding */
}

    .column-text .strategy-label {
        font-size: 0.7rem;
    }

    .column-text .strategy-line {
        width: 40px;
    }

    .column-text .strategy-number {
        font-size: 1rem;
    }

    .column-text h2 {
        font-size: 24pt;
    }

    .column-text p {
        font-size: 0.9rem;
    }

    .column-image {
        width: 100%;
        padding-left: 0;
    }

    .audit-section .column-form {
        width: 100%;
        padding-left: 0;
        margin-bottom: 20px;
    }

    .audit-form .form-group label {
        font-size: 1rem;
    }

    .audit-form .form-group input,
    .audit-form .form-group textarea {
        font-size: 0.9rem;
    }

    .audit-form button {
        width: 100%;
    }

    .services-grid-section {
        padding: 0 20px;
        margin: 20px auto;
    }

    .services-grid-section h2 {
        font-size: 24pt;
    }

    .services-grid-section .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, auto);
    }

    .service-item h3 {
        font-size: 1.1rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }

    .services-section {
        padding: 0 20px;
        margin: 20px auto;
    }

    .services-section h2 {
        font-size: 24pt;
    }

    .services-section .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-section {
        padding: 0 20px;
        margin: 20px auto;
    }

    .testimonials-section h2 {
        font-size: 24pt;
    }

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

    .testimonial-item p {
        font-size: 0.9rem;
    }

    .testimonial-item .author {
        font-size: 0.8rem;
    }

    .cta-section {
        padding: 20px;
        margin: 20px auto;
    }

    .cta-section h2 {
        font-size: 24pt;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .klaviyo-hero {
        margin: 80px auto 20px auto;
        padding: 0 20px;
    }

    .klaviyo-hero h1 {
        font-size: 24pt;
    }

    .klaviyo-hero p {
        font-size: 1rem;
    }

    .klaviyo-features {
        padding: 0 20px;
        margin: 20px auto;
    }

    .klaviyo-features h2 {
        font-size: 24pt;
    }

    .klaviyo-results {
        padding: 0 20px;
        margin: 20px auto;
    }

    .klaviyo-results h2 {
        font-size: 24pt;
    }

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

    .result-item h3 {
        font-size: 1.1rem;
    }

    .result-item p {
        font-size: 0.9rem;
    }

    .contact-section {
        margin: 80px auto 20px auto;
        padding: 0 20px;
    }

    .contact-form {
        max-width: 100%;
    }

    .contact-form h2 {
        font-size: 24pt;
    }

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

    .form-group label {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }

    .contact-form button {
        width: 100%;
        padding: 10px;
    }

    .contact-details h3 {
        font-size: 1.2rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .privacy-section {
        margin: 80px auto 20px auto;
        padding: 0 20px;
    }

    .privacy-section h1 {
        font-size: 24pt;
    }

    .privacy-section .intro {
        font-size: 1rem;
    }

    .privacy-section h2 {
        font-size: 1.2rem;
    }

    .privacy-section p {
        font-size: 0.9rem;
    }

    .privacy-section li {
        font-size: 0.9rem;
    }

    .footer-text {
        letter-spacing: 0.005vw;
        margin: 15px 0 0 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
        margin: 5px 0 15px 0;
        text-align: left;
    }

    .privacy-policy {
        order: -1;
    }
}