/* --- PJ GROUPS - Main Stylesheet (style.css) --- */

/* --- 1. BRAND COLOR PALETTE & VARIABLES --- */
/* (Based on Open Source Logo Philosophy and Integrated Theme) */
:root {
    --color-corporate-blue: #003366; /* Primary Backgrounds, Footer */
    --color-accent-green: #339966;   /* Success, Growth, Links */
    --color-accent-orange: #FF6600;  /* Primary CTAs, Innovation */
    --color-accent-gold: #FFCC00;    /* Subtle Highlights */
    --color-text-dark: #333333;
    --color-text-light: #f4f4f4;
    --color-background-light: #FFFFFF;
    --color-background-gray: #f9f9f9; /* Used for sections like Services */
}

/* --- 2. GLOBAL RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    scroll-behavior: smooth; /* For smooth single-page navigation */
}

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

h1, h2, h3, h4 {
    color: var(--color-corporate-blue);
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 { font-size: 2.5em; }
h2 { 
    font-size: 2em; 
    border-bottom: 3px solid var(--color-accent-orange);
    padding-bottom: 10px;
}
h3 { font-size: 1.5em; }

p { margin-bottom: 20px; }

a {
    color: var(--color-accent-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-orange);
}

/* --- 3. CALL-TO-ACTION (CTA) BUTTONS --- */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.primary-cta {
    background-color: var(--color-accent-orange);
    color: var(--color-background-light);
}

.primary-cta:hover {
    background-color: #e65c00; /* Darker orange */
    transform: translateY(-2px);
}

.secondary-cta, .partner-cta {
    background-color: var(--color-corporate-blue);
    color: var(--color-background-light);
    border: 2px solid var(--color-corporate-blue);
}

.secondary-cta:hover, .partner-cta:hover {
    background-color: var(--color-accent-green);
    border-color: var(--color-accent-green);
}

/* --- 4. HEADER & NAVIGATION --- */
#main-header {
    background-color: var(--color-background-light);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 40px; /* Adjust as per actual logo size */
}

nav a {
    margin: 0 15px;
    color: var(--color-corporate-blue);
    font-weight: 600;
}

.social-links a {
    margin-left: 10px;
    font-size: 0.9em;
    color: var(--color-text-dark);
}

/* --- 5. HERO SECTION --- */
.hero-section {
    background-image: url('../images/hero-finance.jpg'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    color: var(--color-text-light); /* Text color over dark image */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    padding: 150px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: var(--color-accent-gold);
    font-size: 3.5em;
    border-bottom: none;
    margin-bottom: 10px;
}

.hero-section .tagline {
    font-size: 1.5em;
    font-style: italic;
    color: var(--color-accent-green);
}

.hero-section .sub-headline {
    font-size: 1.2em;
    max-width: 600px;
}

/* --- 6. SERVICE SECTIONS --- */
.services-section {
    padding: 60px 0;
    background-color: var(--color-background-gray);
}

.service-pillar {
    background-color: var(--color-background-light);
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-pillar img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.faq-accordion h4 {
    cursor: pointer;
    color: var(--color-accent-green);
    margin-bottom: 5px;
    border-left: 5px solid var(--color-accent-orange);
    padding-left: 10px;
}

.faq-answer {
    display: none; /* Controlled by JS */
    padding: 10px 0 10px 15px;
    border-bottom: 1px dotted #ccc;
}

/* --- 7. ABOUT US (ETHOS) SECTION --- */
#about {
    padding: 60px 0;
    background-color: var(--color-corporate-blue);
    color: var(--color-text-light);
}

#about h2, #about h4 {
    color: var(--color-accent-gold);
    border-color: var(--color-accent-green);
}

#about p, #about a {
    color: var(--color-text-light);
}

.ethos-pillars {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.ethos-card {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
}

/* --- 8. GALLERY / EVENTS SECTION --- */
.gallery-section {
    padding: 60px 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* --- 9. RESOURCES SECTION --- */
.resources-section {
    padding: 60px 0;
    background-color: var(--color-accent-green);
    color: var(--color-text-light);
    text-align: center;
}

.resources-section h2 {
    color: var(--color-background-light);
    border-color: var(--color-accent-gold);
}

#catalog-download-form input {
    padding: 12px;
    width: 300px;
    border: none;
    border-radius: 5px 0 0 5px;
    margin-right: -5px;
}

#catalog-download-form button {
    border-radius: 0 5px 5px 0;
}

/* --- 10. PARTNERSHIPS SECTION --- */
.partnerships-section {
    padding: 60px 0;
    background-color: var(--color-background-light);
    text-align: center;
}

.partner-card {
    display: inline-block;
    width: 30%;
    margin: 20px 1.5%;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    vertical-align: top;
    transition: box-shadow 0.3s ease;
}

.partner-card img {
    max-height: 50px;
    margin-bottom: 15px;
}

.partner-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* --- 11. CONTACT SECTION --- */
.contact-section {
    padding: 60px 0;
    background-color: var(--color-background-gray);
}

.contact-form-area {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

#contact-form, .contact-details {
    flex: 1;
}

.contact-details {
    padding: 20px;
    border-left: 3px solid var(--color-accent-orange);
}

.gbp-link {
    background-color: #DB4437; /* Google Red */
    color: var(--color-background-light);
    margin-bottom: 20px;
}

.vcard-download {
    background-color: var(--color-accent-gold);
    color: var(--color-text-dark);
}

/* --- 12. FOOTER --- */
#main-footer {
    background-color: var(--color-corporate-blue);
    color: var(--color-text-light);
    padding: 30px 0;
    text-align: center;
}

#main-footer a {
    color: var(--color-accent-green);
}

/* --- 13. MEDIA QUERIES (Responsiveness) --- */
@media (max-width: 992px) {
    /* Tablet adjustments */
    .partner-card {
        width: 45%;
        margin: 15px 2%;
    }
}

@media (max-width: 768px) {
    /* Mobile adjustments */
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }

    .header-content {
        flex-direction: column;
        text-align: center;
    }
    nav {
        margin: 10px 0;
    }

    .hero-section {
        padding: 100px 0;
    }

    .ethos-pillars, .contact-form-area {
        flex-direction: column;
        gap: 20px;
    }

    .partner-card {
        width: 90%;
        margin: 15px auto;
    }

    #catalog-download-form input, #catalog-download-form button {
        width: 100%;
        margin-top: 10px;
        border-radius: 5px;
    }
}
