:root {
    --color-headline: #5D2A7A;
    /* Deep Purple to match reference */
    --color-cta-bg: #4a1d66;
    --color-cta-text: #ffffff;
    --color-subtext: #1a1a1a;
    --color-phone: #ffffff;
    --color-strip-bg: #2E4A35;
    /* Dark Green */
    --color-footer-text: #333333;
    --font-main: 'Outfit', sans-serif;

    /* Gradient Background */
    --bg-gradient-top: #A0CBE8;
    /* Sky Blue */
    --bg-gradient-mid: #F8F5F2;
    /* Off-white */
}

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

body,
html {
    height: 100%;
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    background: linear-gradient(to bottom, var(--bg-gradient-top) 0%, var(--bg-gradient-mid) 50%, white 100%);
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
    /* Prevent scrolling */
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    /* Force fixed height */
    position: relative;
    width: 100%;
    max-width: 100%;
    /* Full width */
    margin: 0 auto;
    overflow: hidden;
    /* Prevent scrollbars from decorative elements */
}

/* Decorative Side Patterns - Chevron/Zigzag logic */
.decorative-lines {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 0;
    background-color: transparent;
    opacity: 0.6;
}

/* 
   Creating the zigzag pattern using CSS gradients. 
   We overlay multiple repeating gradients to create the woven content.
*/
.decorative-lines::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 10px, #9b59b6 10px, #9b59b6 12px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, #7f8c8d 10px, #7f8c8d 12px);
    background-size: 30px 30px;
}

.decorative-lines.left {
    left: 0;
}

.decorative-lines.right {
    right: 0;
    transform: scaleX(-1);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5vh;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
    z-index: 2;
}

.logo {
    max-width: 200px;
    /* Adjust size as needed provided logo is large */
    width: 60%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.headline {
    font-size: clamp(4rem, 7vw, 7rem);
    /* Larger */
    font-weight: 800;
    color: var(--color-headline);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
}

.subtext {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--color-subtext);
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.subtext p {
    margin-bottom: 0.2rem;
}

/* Main Visual & CTA */
.visual-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: auto;
    width: 100%;

    /* Center the button vertically in the available space */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* House at bottom */
    align-items: center;
    /* Center horizontally */
    /* Ensure house sits ON the green strip. 
       The green strip is in .bottom-section. 
       We need to overlap carefully. 
    */
    margin-bottom: -1px;
    /* Align perfectly */
    z-index: 2;
}

.lp {
    position: absolute;
    bottom: 0;
    left: 0;
}

.rp {
    position: absolute;
    bottom: 0;
    right: 0;
}

.house-image {
    /* Reduced from 60% */
    width: 40%;
    /* Reduced for desktop to show footer */
    max-height: 40vh;
    /* Limit height */
    /* max-width: 600px; */
    /* Adjust based on reference proportion */
    height: auto;
    object-fit: contain;
    /* Create a 'grounding' shadow */
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.3));
    transform: translateY(18px);
    /* Push down slightly to sit on the bar */
}



.cta-button {
    display: inline-block;
    background-color: var(--color-cta-bg);
    color: var(--color-cta-text);
    padding: 0.8rem 3rem;
    padding: 0.8rem 3rem;
    margin-top: 2rem;
    /* Revert to standard padding (1x) */
    margin-bottom: 2rem;
    /* Reverting centering to use explicit padding */
    /* This centers it in the flex space between header and house */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid #ffffff;
    /* Default with border */
    /* White border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    white-space: nowrap;
    z-index: 10;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Bottom Section */
.bottom-section {
    position: relative;
    z-index: 3;
    width: 100%;
}

.contact-strip {
    background-color: var(--color-strip-bg);
    width: 100%;
    padding: 0.5rem 0;
    /* Reduced vertical padding */
    text-align: center;
    /* Textured look */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 4px 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(80px, 12vw, 150px);
    /* Reduced Height range */
}

.phone-number {
    font-size: clamp(3rem, 8vw, 8rem);
    /* Reduced size */
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    display: block;
    letter-spacing: -0.04em;
    font-family: var(--font-main);
}

.footer {
    background-color: #fff;
    padding: 1rem 3rem;
    /* Wider padding */
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-footer-text);
    border-top: 1px solid #eee;
}

.legal-text {
    text-align: left;
    max-width: 60%;
}

.copyright {
    margin-left: auto;
    font-weight: 600;
}

/* Responsiveness */
@media (max-width: 768px) {

    /* Allow scrolling on mobile */
    body,
    html {
        overflow-y: auto;
        height: auto;
    }

    .page-wrapper {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .headline {
        margin-top: 1rem;
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .contact-strip {
        height: auto;
        padding: 0.5rem 0;
        background: #fde9ff;
        /* Requested color */
        background-image: none;
        /* Remove texture for clean solid color */
    }

    .phone-number {
        font-size: 3.5rem;
        color: var(--color-headline);
        /* Ensure contrast on light background */
    }

    .cta-button {
        /* cleaned up leftover absolute positioning */
        margin-top: 4rem;
        /* Changed to 4rem per request */
        margin-bottom: 0.5rem;
        padding: 0.8rem 3rem;
        border: none;
        /* No border on mobile per guide */
        box-shadow: none;
        /* flatter look if needed, but guide has shadow? leaving shadow */
        width: 80%;
        /* Make it wider on mobile? Guide looks standard pill */
        max-width: 300px;
        text-align: center;
    }

    .visual-container {
        margin-top: auto;
        /* Push it back down to the bottom */
        flex-shrink: 0;
    }

    .house-image {
        width: 100%;
        /* Fill the width */
        transform: translateY(0);
        /* Remove offset if it complicates things, or keep it. Guide shows flush. */
        margin-bottom: -5px;
        /* Ensure no gap at bottom */
    }

    /* Force tighter vertical spacing on subtext */
    .subtext {
        font-size: 0.9rem;
    }

    .decorative-lines {
        width: 40px;
        opacity: 0.3;
    }

    .footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .legal-text,
    .copyright {
        text-align: center;
        width: 100%;
        max-width: 100%;
        font-size: 0.7rem;
    }

    .lp,
    .rp {
        display: none;
    }
}