/* Basic Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Define color palette */
    --primary-color: #004080; /* A deeper, more serious blue */
    --secondary-color: #6c757d; /* A subtle grey */
    --accent-color: #e67e22; /* A more "matter-of-fact" orange/rust for highlights */
    --text-color-dark: #343a40;
    --text-color-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-dark: #f0f2f5; /* Light grey for subtle separation */

    /* Font families */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth; /* Smooth scrolling for nav links */
}

/* Global Container for content width */
.container {
    max-width: 1100px; /* Keep this width for better text line length */
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.8em;
    line-height: 1.2;
    font-weight: 700; /* Ensure headings are bold */
}

/* h1 is now specific to .hero-section h1 */
h2 {
    font-size: 2.8em; /* Section headings */
    text-align: left; /* Now left-aligned by default */
    margin-bottom: 1.5em;
    padding-top: 1em; /* Space from section top */
}

h3 {
    font-size: 1.9em; /* Subheadings */
    color: var(--primary-color); /* Use primary color for section subheadings */
}

p {
    margin-bottom: 1em;
    font-size: 1.1em; /* Make body text a bit larger for readability */
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color-light);
    padding: 12px 28px; /* Slightly larger padding */
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 1em;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    font-size: 1.1em; /* Make button text slightly larger */
}

.btn:hover {
    background-color: #d86810; /* Darker orange on hover */
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #003366;
}

.btn-secondary {
    background-color: var(--secondary-color);
    margin-left: 15px; /* Space between buttons */
}
.btn-secondary:hover {
    background-color: #5a6268;
}

/* Navbar (unchanged) */
.navbar {
    background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent background */
    padding: 15px 0;
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

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

.navbar .logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color-light);
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 35px;
}

.navbar .nav-links a {
    color: var(--text-color-light);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* NEW HERO SECTION STYLES */
.hero-section {
    background-color: var(--bg-dark); /* Light grey background - can be changed to var(--bg-light) for pure white */
    min-height: 350px; /* Mid-sized height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-dark);
    padding: 40px 0; /* Add some padding */
}

.hero-section h1 {
    font-size: 3.8em; /* Prominent headline */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.5em; /* Tagline size */
    max-width: 800px;
    margin: 0 auto 30px auto; /* Centered with space below */
    color: var(--text-color-dark); /* Ensure text color is visible on light background */
}

/* REMOVED .intro-bar styles */


/* Sections */
.section {
    padding: 80px 0;
    overflow: hidden; /* Clear floats for image sections */
}

.about-section {
    background-color: var(--bg-light); /* This is set to white, should not be grey */
    padding-bottom: 40px; /* Less padding at the bottom if next section is also white */
    padding-top: 80px; /* Ensure space after the new intro bar */
}

/* Adjusted for a 2-column grid in about section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Text takes 3 parts, image 1 part */
    gap: 40px;
    align-items: center;
    padding-top: 40px; /* Space from section title */
}

.about-text h2 {
    text-align: left; /* Align heading left for this section */
    font-size: 2.5em;
    margin-bottom: 0.5em;
    padding-top: 0;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* For a rounded square/rectangle */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--accent-color); /* A pop of accent color around the image */
    object-fit: cover; /* Ensures image covers the space without distortion */
    object-position: left; /* Prioritize the left side of the image */
    width: 300px; /* Keep fixed width */
    height: 300px; /* Keep fixed height for a square aspect ratio */
}

.personality-section {
    background-color: var(--bg-dark); /* This is currently a light grey */
    padding-top: 60px; /* Adjust padding */
    padding-bottom: 60px;
}

.personality-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse; /* Image on right, text on left */
}

.personality-image {
    flex: 1;
    text-align: center;
}

.personality-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Slightly rounded corners for images */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.personality-text {
    flex: 2;
}

.services-section {
    background-color: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2em;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 60px 0;
}

.contact-section h2 {
    color: var(--text-color-light);
}

.contact-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Footer */
.footer {
    background-color: var(--bg-dark); /* CHANGED: Lighter grey background */
    color: var(--text-color-dark); /* CHANGED: Darker text for readability on light background */
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Optional: A subtle border at the top */
}

.footer .social-links a {
    color: var(--primary-color); /* CHANGED: Primary color for icons */
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5em; /* Adjust for smaller screens */
    }
    .hero-section p {
        font-size: 1.2em;
    }
    h2 {
        font-size: 2em;
    }
    .navbar .nav-links {
        display: none; /* Hide nav links on smaller screens for now, can implement hamburger menu later */
    }
    .about-grid,
    .personality-content {
        grid-template-columns: 1fr; /* Stack on small screens */
        flex-direction: column; /* Ensure proper stacking for flex items */
        text-align: center;
    }
    .about-text,
    .personality-text {
        order: 2; /* Text after image on small screens */
    }
    .about-image,
    .personality-image {
        order: 1; /* Image before text on small screens */
        margin-bottom: 20px;
    }
    .about-text h2 {
        text-align: center; /* Center heading on small screens */
    }
    .btn {
        margin-right: 0;
        margin-left: 0;
        display: block;
        width: 80%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .btn-secondary {
        margin-top: 15px; /* Separate stacked buttons */
        margin-left: auto;
        margin-right: auto;
    }
}
