/* ==========================================================================
   1. Global Variables & Root Setup
   ========================================================================== */
:root {
    /* Color Palette from IntegrateIQ Logo */
    --primary-color: #D91A8D;   /* Vibrant Pink from logo */
    --primary-color-light: #E64A9E; /* Lighter pink for backgrounds */
    --secondary-color: #1e3a5f; /* Dark Blue from logo */
    --secondary-color-light: #3c5a8a; /* Lighter blue for accents */
    --accent-color: #8C92AC;    /* Gray from logo */
	--secondary-color-darker: #15294a;     /* Darker blue for cards on blue backgrounds */
	--accent-color-blue: #448cff;         /* Bright blue for borders/accents */
	--primary-color-light-bg: rgba(217, 26, 141, 0.15); /* Translucent pink for card backgrounds */
	--primary-color-medium-border: rgba(217, 26, 141, 0.6); /* Translucent pink for borders */
	--secondary-color-light-bg: rgba(30, 58, 95, 0.05); /* Translucent blue for card backgrounds */
    
    /* Theme Colors */
    --background-color: #FFFFFF;
    --text-color: #2A3F6F;       /* Using the dark blue for text for high contrast */
    --text-color-light: #FFFFFF; /* For text on dark backgrounds (e.g., buttons) */

    /* Font */
    --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	
	/* Spacing */
	--section-padding-vertical: clamp(6rem, 8vw, 9.6rem);
}
html {
    font-size: 62.5%;
    box-sizing: border-box;
	overflow-x: clip;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* ==========================================================================
   2. Base Body & Link Styles
   ========================================================================== */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.6;
	overflow-x: clip;
	display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   3. Responsive Typography System
   ========================================================================== */
h1, h2, h3, h4, p {
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

h1 {
    font-size: clamp(3rem, 5vw + 1rem, 5.8rem);
    font-weight: 800;
    color: var(--text-color);
}
h2 {
    font-size: clamp(2.6rem, 4vw + 1rem, 4.8rem);
    font-weight: 700;
    color: var(--text-color);
}
h3 {
    font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem);
    font-weight: 700;
    color: var(--text-color);
}
h4 {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.8rem);
    font-weight: 700;
    color: var(--text-color);
}
p {
    font-size: 1.6rem;
    line-height: 1.7;
    font-weight: 400;
}

/* ==========================================================================
   4. Button & Container Styles
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color); /* Pink button background */
    color: var(--text-color-light); /* White text for contrast */
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.btn:hover {
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 26, 141, 0.3); /* Shadow matches the pink button color */
}
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4vw;
    padding-right: 4vw;
}
@media (max-width: 900px) {
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
	
	.container {
		padding-left: 10vw;
		padding-right: 10vw;
	}
}

@media (max-width: 768px) {
	.container {
		padding-left: 4vw;
		padding-right: 4vw;
	}
}

/* ==========================================================================
   5. On-Scroll Animations
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   6. Mobile CTA
   ========================================================================== */
.sticky-cta-mobile {
    display: none;
}

@media (max-width: 900px) {
    .sticky-cta-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        padding: 1rem;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .sticky-cta-container {
        display: flex;
        gap: 1.5rem;
    }

    .sticky-cta-mobile .btn {
		flex: 1;
		padding: 12px;
		text-align: center;
		white-space: nowrap;
		font-size: 1.25rem;
	}
    
    .sticky-cta-mobile .btn.btn-secondary {
        background-color: var(--secondary-color-light-bg);
        color: var(--secondary-color);
        border: 1px solid var(--secondary-color);
    }

    body {
        padding-bottom: 90px;
    }
}
