/* --- Base Styles & Variables --- */
:root {
    --bg-color: #f4f1ea;
    --text-color: #3d3d3d;
    --primary-color: #d98a6a;
    --secondary-color: #a8a39a;
    --card-bg-color: #fbf9f5; /* Softer card color */
    --header-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    position: relative; /* Needed for z-index stacking */
}

/* --- Utility Classes --- */
.card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--secondary-color);
    border-radius: 16px; /* Rounder corners */
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Background Peeps --- */
.background-peeps {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place behind all other content */
    overflow: hidden;
}

.peep {
    position: absolute;
    opacity: 0.05; /* Lowered opacity further */
    width: 80px; /* Made them smaller */
}

/* --- Positioning for each peep --- */
.peep-1 { top: 10%; left: 20%; transform: rotate(-15deg); }
.peep-2 { top: 15%; left: 50%; transform: rotate(5deg); }
.peep-3 { top: 8%; left: 80%; transform: rotate(20deg); }
.peep-4 { top: 35%; left: 5%; transform: rotate(-5deg); }
.peep-5 { top: 40%; left: 65%; transform: rotate(10deg); }
.peep-6 { top: 30%; left: 95%; transform: rotate(-10deg); }
.peep-7 { top: 60%; left: 25%; transform: rotate(15deg); }
.peep-8 { top: 55%; left: 75%; transform: rotate(-20deg); }
.peep-9 { top: 70%; left: 5%; transform: rotate(25deg); }
.peep-10 { top: 85%; left: 20%; transform: rotate(-5deg); }
.peep-11 { top: 90%; left: 60%; transform: rotate(12deg); }
.peep-12 { top: 80%; left: 90%; transform: rotate(-18deg); }


/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--header-font);
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

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

/* --- Layout & Sections --- */
.content-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--text-color);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 40%;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem; /* Larger font for modern look */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 700; /* Bolder font */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for readability */
}

.hero-image {
    flex: 1;
    max-width: 55%;
}

.hero-image img {
    width: 100%;
    height: auto;
}


/* --- Call to Action Button --- */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 16px; /* Rounder corners */
    font-weight: 700;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--body-font);
}

.cta-button:hover {
    background-color: #c97a5a;
}

/* --- About Section --- */
#about {
    max-width: 1200px;
}

.about-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.mission-statement {
    flex: 1;
    max-width: 40%;
    text-align: left;
    margin: 0;
}

.mission-statement h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mission-statement p {
    font-size: 1.2rem;
    font-style: normal;
    color: var(--text-color);
}

.profiles-collage {
    flex: 1;
    position: relative;
    height: 450px;
}

.founder-profile {
    width: 300px;
    padding: 1.5rem;
    position: absolute;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-align: center;
}

.founder-profile h4 {
    margin-top: 0;
    margin-bottom: 0.5rem; /* Tighter spacing below name */
}

.founder-profile p {
    margin-bottom: 0; /* Ensures balanced top/bottom margins in card */
}

.founder-1 {
    top: 0;
    left: 60px; /* Shifted collage right for balance */
    z-index: 2;
}

.founder-2 {
    top: 200px;
    left: 330px; /* Shifted collage right for balance */
    z-index: 1;
}

.headshot {
    width: 160px; /* Larger profile pic */
    height: 160px;
    border-radius: 8px; /* Rounded corners */
    object-fit: cover;
    margin-bottom: 0.5rem; /* Reduced space below pic */
    border: 1px solid var(--secondary-color);
}


/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* --- Contact Form --- */
.contact-subtext {
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--body-font);
    padding: 0.8rem;
    border: 1px solid var(--secondary-color);
    border-radius: 16px; /* Rounder corners */
    background-color: var(--card-bg-color); /* Use new card color */
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--secondary-color);
    margin-top: 2rem;
}

/* --- Responsive Design --- */

/* Tablet Styles */
@media (max-width: 992px) {
    .hero-container,
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .mission-statement {
        max-width: 80%;
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero-image {
        max-width: 60%;
    }

    .profiles-collage {
        height: auto;
        margin-top: 2rem;
        width: 100%; /* Ensure collage container takes full width */
    }

    .founder-profile {
        position: relative;
        margin: 0 auto 2rem;
        left: auto !important;
        top: auto !important;
        width: 80%; /* Make cards wider on tablet */
        max-width: 450px; /* But not too wide */
    }

    #about {
        padding-bottom: 0;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .about-container {
        margin-top: 1.5rem; /* Significantly reduce space above */
    }

    .hero-content,
    .mission-statement {
        max-width: 100%;
    }

    .mission-statement {
        margin-bottom: 1.5rem; /* Significantly reduce space below */
    }

    .hero-image {
        max-width: 80%;
    }

    .founder-2 {
        margin-top: 2rem; /* Stack cleanly on mobile */
    }
    
    #about.content-section {
        padding-top: 1.5rem; /* Tighter top padding for mobile */
        padding-bottom: 0; /* Remove bottom padding for mobile */
    }

    .content-section {
        padding: 3rem 1rem;
    }

    /* Hide some background peeps on mobile to reduce clutter */
    .peep-3, .peep-4, .peep-9, .peep-11 {
        display: none;
    }
}
