/* ===================================== */
/* 0. BASE STYLES & TYPOGRAPHY           */
/* ===================================== */

:root {
    /* Main Colors */
    --color-primary: #5c677d; /* Dark Blue/Gray for text and accents */
    --color-secondary: #a99985; /* Soft earth tone for kindness/beauty */
    --color-background-light: #f9f9f9; /* Light gray for section breaks */
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif; /* Elegant serif for titles */
    --font-body: 'Roboto', sans-serif; /* Clean sans-serif for reading */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-white);
}

.container {
    width: 90%;
    max-width: 1100px; /* Max width for content visibility */
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary);
}


/* ===================================== */
/* 1. HEADER & NAVIGATION                */
/* ===================================== */

.main-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.primary-nav a {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ===================================== */
/* 2. HERO SECTION                       */
/* ===================================== */

.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('hero-placeholder.jpg') center/cover no-repeat;
    /* NOTE: Replace 'hero-placeholder.jpg' with your actual beautiful image */
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    margin-bottom: 4rem;
}

.hero h2 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 0.25em;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #928373; /* Slightly darker secondary color */
}


/* ===================================== */
/* 3. INTRO BLOCK - NARROW TEXT          */
/* ===================================== */

.intro-block {
    padding: 4rem 0;
    background-color: var(--color-background-light); /* Subtle visual break */
}

.intro-text {
    max-width: 750px; /* Makes the text column narrow for easy reading */
    margin: 0 auto;
    text-align: center;
}

.intro-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}


/* ===================================== */
/* 4. FEATURE BLOCKS - ALTERNATING LAYOUT*/
/* ===================================== */

.feature-blocks {
    padding: 6rem 0;
}

.feature-item {
    display: grid;
    /* Creates a 2-column layout: 1fr (flexible) and 1fr (flexible) */
    grid-template-columns: 1fr 1fr; 
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem; /* Space between each feature item */
}

.feature-image {
    height: 300px;
    background-size: cover !important;
    background-position: center center !important;
    border-radius: 8px; /* Soft edges for kindness */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-text h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
}

/* TWEAK: Invert the layout for odd blocks */
.feature-item.inverted {
    /* Reverse the order of the grid columns */
    grid-template-areas: "text image";
}

.feature-item.inverted .feature-text {
    grid-area: text;
}
.feature-item.inverted .feature-image {
    grid-area: image;
}


/* ===================================== */
/* 5. FOOTER                             */
/* ===================================== */

.main-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 1.5rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

/* ===================================== */
/* MEDIA QUERY FOR SMALL SCREENS         */
/* ===================================== */

@media (max-width: 768px) {
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .primary-nav ul {
        gap: 1rem;
    }

    .hero {
        height: 50vh;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .feature-item,
    .feature-item.inverted {
        /* On small screens, stack the image and text vertically */
        grid-template-columns: 1fr;
        grid-template-areas: unset !important;
    }

    .feature-image {
        /* Move image to top on mobile */
        order: -1; 
        margin-bottom: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}