/* ---
Root Variables
Here we define your color palette for easy use and updates.
--- */
:root {
    /* Brand & Highlight Colors */
    --color-brand-teal: #70B9A6;

    /* Primary Purple Palette */
    --color-purple-default: #927CEF;   /* default purple */
    --color-purple-accent:  #411DF6;   /* strong accent purple */
    --color-purple-hover:   #A28EFF;   /* hover state */
    --color-purple-pressed: #7A6BDD;   /* pressed/active state */
    --color-purple-disabled:#BFB8E0;   /* disabled / subdued */
    --color-purple-outline: #6C5CC6;   /* outline / border */

    /* Legacy aliases (previously pink/blue) now mapped to purple */
    --color-highlight-pink: var(--color-purple-accent);
    --color-highlight-blue: var(--color-purple-accent);
    --color-light-pink:     var(--color-purple-default);
    --color-light-blue:     var(--color-purple-default);
    
    /* Light Theme Palette */
    --color-bg-main: #E5E5E5; /* light grey background */
    --color-bg-card: #FFFFFF; /* white for cards/header */
    
    /* Text Colors */
    --color-text-primary: #2C2C2C; /* "black" */
    --color-text-secondary: #555555; /* slightly lighter grey for sub-text */
    
    /* Font */
    --font-primary: 'Poppins', sans-serif;
}

/* ---
Global Resets & Base Styles
--- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    
    /* Background Image */
    background-color: var(--color-bg-main); /* Fallback/Blend color */
    background-image: url('BackgroundImg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps image stationary on scroll */

    color: var(--color-text-primary);
    line-height: 1.6;
    
    /* Modern centering */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Padding for header and content */
    padding: 1rem;
    padding-top: 80px; /* Adjust based on your header's actual height */
    
    /* Positioning */
    position: relative; 
    top: auto;
    left: auto;
}

/* ---
Main Container
This holds the content card.
--- */
/* Container can stay roomy so both columns fit */
.container {
    width: 100%;
    max-width: 1400px; /* room for 700px text + image + gap */
    margin: 1rem;
}

/* Flex container now justifies content to the right */
.main-flex {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes the content-wrapper to the right */
    gap: 2rem;
    flex-wrap: wrap;
}

/* Text box: fixed nice readable width */
.content-wrapper {
    flex: 0 0 700px;            /* keep it 700px wide */
    max-width: 700px;
    background-color: var(--color-bg-card); /* Changed to white */
    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1); /* Lightened shadow */
    text-align: center;
}

/* .product-box and .product-image rules removed 
*/

/* Stack only when the page gets too narrow for both columns */
@media (max-width: 1080px) {
    .main-flex {
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center it when stacked */
    }
    /* .product-box rules removed from media query */
    .content-wrapper {
        flex: none;
        width: 100%;
        max-width: 700px;
    }
}

.email-link {
    color: var(--color-purple-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-purple-outline);
    padding-bottom: 0.05em;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.email-link:hover,
.email-link:focus-visible {
    color: var(--color-purple-hover);
    border-color: var(--color-purple-hover);
    /*background-color: rgba(146, 124, 239, 0.08); /* subtle highlight */
    outline: none;
}

.email-link:active {
    color: var(--color-purple-pressed);
    border-color: var(--color-purple-pressed);
}

/* ---
Typography
--- */
h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-brand-teal); /* Kept brand teal */
    line-height: 1.2;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-primary); /* Changed to dark text */
    margin-bottom: 2rem;
}

.filler-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-secondary); /* Changed to secondary dark text */
    margin-bottom: 2rem;
}

.stay-tuned {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-purple-accent); /* now uses accent purple */
}

/* ---
Decorative Elements
--- */
.divider {
    height: 2px;
    width: 50px;
    background-color: var(--color-brand-teal); /* Kept brand teal */
    opacity: 0.5;
    margin: 0 auto 2rem auto;
}


/* ---
Responsive Design
--- */
@media (max-width: 600px) {
    .content-wrapper {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

/* ---
Header Styles
--- */
.main-header {
    width: 100%;
    position: absolute; /* Allows main content to center properly below it */
    top: 0;
    left: 0;
    background-color: var(--color-bg-card); /* Changed to white */
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensures it stays on top */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: none;        /* remove fixed width */
    margin: 0;              /* remove centering */
    padding-left: 2rem;     /* optional, to give it some breathing room */
}

.logo {
    height: 40px; /* Adjust logo size as needed */
    width: auto;
    margin-right: 1rem;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-brand-teal); /* Kept brand teal for emphasis */
    letter-spacing: 0.05em;
}

/* ---
Mobile Background Fix
--- */
@media (max-width: 768px) {
    body {
        background-position: left center;
        background-attachment: scroll;
    }
}

/* ---
Mobile Split Layout
--- */
@media (max-width: 768px) {

    body {
        background-position: 30% center; /* mobile tweak */
    }

    .main-flex {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 10.5rem; /* Adjust this to control the gap between the two boxes */
    }

    .content-wrapper {
        width: 90%;
        max-width: 600px;
        padding: 1.5rem 1.0rem; /* smaller overall padding */
    }

    .top-section {
        margin-bottom: 0;
        padding-bottom: 0.2rem; /* was 2.5rem — less chunky */
    }

    .bottom-section {
        margin-top: 0;
    }

    .top-section h1 {
        font-size: 1.5rem;   /* was ~2.75rem */
        line-height: 1.25;
    }

    /* Subtitle (under headline) */
    .top-section .subtitle {
        font-size: 0.75rem; /* was ~1.1rem */
    }

    /* Bottom card body text */
    .bottom-section .filler-text {
        font-size: 0.75rem;  /* was ~0.95rem */
    }

    /* Bottom card "stay tuned" line */
    .bottom-section .stay-tuned {
        font-size: 0.8rem;    /* was ~1.2rem */
    }
}