/* --- Base Variables & Reset --- */
:root {
    /* Modernized Color Palette */
    --primary-color: #059669;   /* A more vibrant, digital-native Emerald */
    --primary-hover: #047857;   /* Deeper interaction state */
    --primary-light: #ecfdf5;   /* Very soft green for card hover effects */
    
    --dark-bg: #0f172a;         /* Deep rich slate */
    --light-bg: #f8fafc;        /* Soft off-white for the main background */
    --card-bg: #ffffff;         /* Pure white for cards to pop against --light-bg */
    
    --text-main: #334155;       /* Slate 700 for softer, readable typography */
    --text-heading: #0f172a;    /* Slate 900 for high-contrast headings */
    --text-light: #64748b;      /* Slate 500 for secondary text */
    
    --white: #ffffff;
    --font-family: system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tells the browser to leave space for the sticky header when clicking anchor links */
section[id] {
    scroll-margin-top: 160px; /* Accounts for your logo height + header padding */
}

/* Optional: Adds a smooth glide to the section instead of instantly snapping */
html {
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.7; /* Slightly looser line height for modern readability */
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3 {
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em; /* Tighter letter spacing on headings looks very premium */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white); /* Switched to white so the colored logo pops */
    color: var(--dark-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

/* Constrains the 434x162 logo to fit nicely in the header, with a fallback for forced dark mode */
.logo-img {
    max-height: 85px; /* Kept your original sizing */
    width: auto;
    display: block;
    background-color: #ffffff; /* Ensures the background stays solid white */
    border-radius: 8px; /* Softens the corners into a modern pill shape */
    padding: 5px 10px; /* Gives the logo breathing room inside its white box */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Hero Section (Updated with Banner Image) --- */
.hero {
    /* Reduced overlay opacity to 0.45 for a more subtle effect */
    background-image: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.45)), url('bigtree_recruitment_group_cover.png');
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 7rem 0;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-bg);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.2), 0 2px 4px -1px rgba(5, 150, 105, 0.1); /* Subtle green shadow */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3), 0 4px 6px -2px rgba(5, 150, 105, 0.15); /* Shadow expands on hover */
}

/* --- Industries Grid --- */
.industries {
    padding: 5rem 0;
    background-color: var(--white);
    text-align: center;
}

.industries h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: left; /* Aligns text cleanly for reading */
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-light);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* New: Animated Learn More link indicator */
.card-action {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Moves the arrow slightly to the right on hover */
.card:hover .card-action {
    transform: translateX(6px);
}

/* --- Inner Page Specific Styles --- */
/* --- Inner Page Specific Styles --- */
.page-header {
    /* Added the network background image with a 60% dark overlay for readability */
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('bigtree_recruitment_group_cover.png');
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 6rem 0; /* Increased from 4rem to show off more of the background */
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0;
}

.page-content {
    padding: 5rem 0;
    background-color: var(--white);
}

.page-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.page-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* --- About Section --- */
.about {
    padding: 5rem 0;
}

.about-content {
    max-width: 800px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem 0;
}

.footer-info {
    text-align: center;
}

.footer-info h2 {
    color: var(--white);
    margin-bottom: 0.5rem; /* Pulls the subtitle slightly closer to the heading */
}

.contact-links {
    list-style: none;
    margin: 0; /* Removes the clunky default list margin */
    padding: 0;
}

.contact-links a:hover {
    color: var(--primary-color);
}

.copyright {
    border-top: 1px solid #1e293b;
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.contact-links a:hover {
    color: var(--primary-color);
}

.copyright {
    border-top: 1px solid #1e293b;
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Updates to fix mobile navigation layout */
    .main-nav ul {
        gap: 1rem; /* Slightly smaller gap to save space */
        flex-wrap: wrap; /* Allows the menu to drop to a second line if needed */
        justify-content: center;
    }
    
    .main-nav a {
        white-space: nowrap; /* Forces "About Us" to stay on exactly one line */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    .hero {
        padding: 5rem 0;
    }
}