/* --- common.css --- */

/* --- Global Styles & Variables --- */
:root {
    --primary-blue: #0A74DA;
    --primary-blue-darker: #0056b3;
    --primary-blue-rgb: 10, 116, 218; /* For rgba usage if needed */
    --accent-green: #28A745;
    --accent-green-darker: #1e7e34;
    --dark-gray: #333333;
    --medium-gray: #555555;
    --light-gray: #777777;
    --very-light-gray-bg: #F8F9FA;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--dark-gray);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-gray);
    margin-top: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.6em;
}

h2 { /* General H2 styling, can be overridden by page-specific CSS */
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 1.8em;
    color: var(--primary-blue);
    font-weight: 700;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 0.7em;
    font-weight: 600;
}

p {
    margin-bottom: 1.5em;
    max-width: 680px;
    color: var(--medium-gray);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-blue-darker);
}

section {
    padding: 80px 0;
}

.alt-bg {
    background: linear-gradient(to bottom, var(--very-light-gray-bg) 0%, var(--white) 100%);
}

/* --- General Styling for Images within Sections --- */
.section-image {
    max-width: 100%;
    height: auto;
    display: block; /* Good for layout, helps with margin:auto centering */
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    /* margin-top: 20px; /* Removed default top margin; let parent/specific sections control spacing */
}

/* --- Header --- */
.site-header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 55px;
    width: auto;
    display: block;
}

/* --- Navigation --- */
.main-nav {
    margin-left: auto;
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.main-nav ul li {
    margin-left: 25px;
}
.main-nav ul li a {
    text-decoration: none;
    color: var(--medium-gray);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* --- General CTA Button Style --- */
.cta-button {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: 16px 40px;
    font-size: 1.15rem;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Secondary CTA Style (e.g., for final CTA block on homepage) */
.cta-button-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}
.cta-button-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* --- Base Page Hero Styling (for About/Contact) --- */
.page-hero {
    padding: 100px 0 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.4em;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.page-hero .subhead {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Base Decorative Pseudo-elements for Page Heroes */
.page-hero::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.07;
    z-index: 1;
}

/* Base Shape Divider Styling */
.shape-divider-bottom svg {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: auto;
    z-index: 1;
}
.shape-divider-bottom .shape-fill { /* Default fill for shape dividers */
    fill: var(--white); /* Assuming section below hero is white */
}

/* --- Footer --- */
.site-footer-bottom {
    background-color: var(--dark-gray);
    color: #A0A0A0;
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
}
.site-footer-bottom p { margin: 0; color: #A0A0A0; }


/* --- General Responsive Adjustments for Common Elements --- */
@media (max-width: 991px) { /* Tablet and below */
    h1 { font-size: 2.5rem; }
    .page-hero h1 { font-size: 2.6rem; } /* Specific for page heroes */
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }

    .main-nav ul li { margin-left: 15px; }
}

@media (max-width: 767px) { /* Mobile */
    h1 { font-size: 2.2rem; }
    .page-hero h1 { font-size: 2.2rem; } /* Further adjust page hero H1 */
    h2 { font-size: 1.8rem; }
    p { font-size: 0.95rem; }
    .page-hero .subhead { font-size: 1.05rem; } /* Further adjust page hero subhead */

    .site-header .container { flex-direction: column; }
    .logo { margin-bottom: 15px; }
    .main-nav { margin-top: 0; margin-left: 0; width: 100%; }
    .main-nav ul { justify-content: center; flex-wrap: wrap; }
    .main-nav ul li { margin: 5px 10px; }

    .page-hero { padding: 60px 0 80px 0; }
    .page-hero::before { width: 120px; height: 120px; opacity: 0.05; }
    .shape-divider-bottom, .shape-divider-bottom svg { height: 60px !important; }

    section { padding: 50px 0; }

    /* General rule for stacking two-column flex layouts on mobile */
    .content-columns, /* Class used in about.html */
    .problem-content,  /* Class used in home.html */
    .solution-content, /* Class used in home.html */
    .contact-flex-container /* Class used in contact.html */
    {
        flex-direction: column !important; /* Ensure stacking */
        gap: 25px !important; /* Consistent gap for stacked items */
    }

    /* General rule for children of stacked columns */
    .content-columns > .column,
    .problem-content > div, /* Target direct children like .problem-text, .problem .section-image */
    .solution-content > div,  /* Target direct children like .solution-text, .team-image wrapper if any */
    .contact-flex-container > div /* Target .contact-info, .contact-form-container */
    {
        flex-grow: 0 !important;
        flex-shrink: 1 !important;
        flex-basis: auto !important;
        width: 100% !important;
        min-width: 100% !important; /* Ensure they take full width */
        padding-left: 0 !important; /* Reset desktop paddings if any */
        padding-right: 0 !important;
        text-align: left !important; /* Default text align for content unless overridden */
    }
    /* Ensure text-align:center for specific elements if that's the design */
    .solution-text { text-align: center !important; } /* Example for solution text on mobile */
    .contact-info h2, .contact-form-container h2 { text-align: center !important; } /* Center contact headers */
}