﻿/* Import Google Fonts */
/* lato-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lato-v24-latin-regular.woff2') format('woff2');
}
/* lato-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/lato-v24-latin-700.woff2') format('woff2');
}
/* montserrat-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v29-latin-regular.woff2') format('woff2');
}
/* montserrat-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/montserrat-v29-latin-600.woff2') format('woff2');
}

/* ------------------------- */
/* ----- Color Palette ----- */
/* ------------------------- */
:root {
    --background-light: #FAF8F5; /* Soft off-white/beige */
    --background-section: #F0EDE9; /* Slightly cooler off-white for separation */
    --text-color: #404040; /* Dark grey for readability */
    --primary-color: #A0B8A1; /* Muted Sage Green */
    --accent-color: #5E7C60; /* Deeper Sage Green for links/accents */
    --header-footer-bg: #D3C5B9; /* Warm Taupe/Stone */
    --white: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.08); /* Soft shadow */
}

/* ------------------------- */
/* ----- Base Styles ------- */
/* ------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', Arial, sans-serif; /* Fallback fonts */
    font-size: 16px;
    line-height: 1.6; /* Improved line spacing */
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-color);
}

/* ------------------------- */
/* ----- Typography -------- */
/* ------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semibold */
    margin-top: 0;
    margin-bottom: 1rem; /* Default spacing */
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem; /* More space below section titles */
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.2rem; /* Spacing between paragraphs */
}

b, strong {
    font-weight: 700; /* Ensure bold is distinct */
}

small {
    font-size: 0.85em;
    color: #666; /* Slightly lighter for less emphasis */
}

/* ------------------------- */
/* ----- Links ------------- */
/* ------------------------- */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

    a:hover, a:focus {
        color: darken(var(--accent-color), 10%); /* Slightly darker on hover */
        text-decoration: underline;
    }

/* ------------------------- */
/* ----- Layout & Sections - */
/* ------------------------- */
header, footer {
    background-color: var(--header-footer-bg);
    padding: 20px 30px; /* Adjusted padding */
    text-align: center;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center items vertically */
    gap: 15px; /* Space between logo and text */
}

    header .logo {
        background-image: url('../img/logo.webp');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        min-width: 180px; /* Slightly adjusted */
        min-height: 45px;
        flex-shrink: 0; /* Prevent shrinking */
    }

    header .header-text {
        text-align: center;
    }

    header h1 {
        margin-bottom: 0;
        color: var(--text-color); /* Ensure contrast */
    }

    header h2 {
        margin-top: 0;
        margin-bottom: 0; /* Reset margin */
        font-weight: 400; /* Regular weight for subtitle */
        font-size: 1.1rem;
        color: var(--text-color);
    }

section {
    padding: 60px 0; /* Increased vertical padding */
}

.container {
    max-width: 900px; /* Slightly wider */
    margin: 0 auto;
    padding: 0 30px; /* Horizontal padding */
}

/* ------------------------- */
/* ----- Contact Section --- */
/* ------------------------- */
#contact {
    /*padding-top: 40px;*/ /* Less padding top as header is above */
    padding-bottom: 0;
}

    #contact .container {
        background-color: var(--white); /* Solid background */
        padding: 40px;
        display: flex;
        flex-direction: column-reverse;
        align-items: center; /* Center items horizontally */
        justify-content: center;
        max-width: 650px; /* Adjusted max-width */
        margin: 0 auto; /* Center container */
        box-shadow: 0 4px 15px var(--shadow-color); /* Softer shadow */
        border-radius: 8px; /* Subtle rounding */
    }

    #contact h2 {
        font-size: 1.6rem; /* Adjusted size */
        margin-bottom: 1.5rem;
        text-align: left; /* Align heading left */
    }

    #contact p {
        margin: 0;
    }

    #contact table {
        width: 100%; /* Make table take full width */
        margin-top: 0.5rem;
    }

        #contact table td {
            padding: 4px 0; /* Spacing in table */
        }

            #contact table td:first-child {
                padding-right: 10px; /* Space between label and value */
                font-weight: bold;
                white-space: nowrap; /* Prevent label wrapping */
            }

.contact-info {
    flex-grow: 1;
    width: 100%; /* Take full width in column layout */
}

.profile-pic { /* Renamed class for clarity */
    width: 180px; /* Adjusted size */
    height: 180px;
    border-radius: 50%; /* Keep circular */
    object-fit: cover;
    margin-bottom: 30px; /* More space below image */
    flex-shrink: 0; /* Prevent shrinking */
}

/* ------------------------- */
/* ----- Intro Section ----- */
/* ------------------------- */
#intro {
    text-align: center; /* Center intro text */
}

    #intro .container {
        max-width: 750px; /* Slightly narrower for intro text */
    }

/* ------------------------- */
/* ----- Services Section -- */
/* ------------------------- */
#services {
    background-color: var(--background-section); /* Use section background color */
    /* Removed background image and fixed attachment */
}

    #services .grid {
        display: grid;
        grid-template-columns: 1fr; /* Default to single column */
        gap: 30px; /* Increased gap */
    }

        #services .grid .box {
            background-color: var(--white);
            text-align: center;
            border-radius: 8px; /* Match contact section */
            overflow: hidden;
            box-shadow: 0 4px 15px var(--shadow-color); /* Consistent soft shadow */
            padding-bottom: 2rem;
            display: flex; /* Use flex for better internal alignment */
            flex-direction: column;
            height: 100%; /* Make boxes equal height in grid row */
        }

            #services .grid .box h3 {
                margin-top: 1.5rem; /* Space above heading */
                margin-bottom: 1rem;
            }

            #services .grid .box ul {
                list-style-position: inside; /* Bullets inside */
                padding-left: 1rem; /* Adjust padding */
                margin-bottom: 1.5rem; /* Space below list */
                text-align: left; /* Align list text left */
                margin-left: auto; /* Center the list block */
                margin-right: auto;
                max-width: 80%; /* Prevent list from being too wide */
            }

            #services .grid .box .price { /* Specific class for price */
                margin-top: auto; /* Push price to the bottom */
                font-size: 1.3rem;
                padding-top: 1rem; /* Space above price */
            }

                #services .grid .box .price small {
                    display: block; /* Make small text appear on new line */
                    font-weight: 400; /* Regular weight */
                    margin-top: 0.3rem;
                }


.square {
    width: 100%;
    padding-bottom: 75%; /* Aspect ratio for service images (e.g., 4:3) - Adjust if needed */
    height: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ------------------------- */
/* ----- Legal Section ----- */
/* ------------------------- */
#legal {
    background-color: var(--background-light); /* Match body background */
    font-size: 0.9rem; /* Slightly smaller text for legal */
    line-height: 1.5;
}

    #legal h3 {
        font-size: 1.2rem;
        margin-top: 2.5rem; /* More space before legal headings */
        margin-bottom: 1rem;
    }

        #legal h3:first-of-type {
            margin-top: 0; /* No extra top margin for the first heading */
        }

    #legal p {
        margin-bottom: 0.8rem;
    }

/* ------------------------- */
/* ----- Footer ------------ */
/* ------------------------- */
footer {
    background-color: var(--header-footer-bg); /* Match header */
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ------------------------- */
/* ----- Utilities --------- */
/* ------------------------- */
.text-center {
    text-align: center;
}

.text-start {
    text-align: start;
}
/* Alias for left in LTR */
.text-bold {
    font-weight: bold;
}

.mt-2 {
    margin-top: 2rem !important;
}

/* ------------------------- */
/* ----- Media Queries ----- */
/* ------------------------- */
@media screen and (min-width: 768px) { /* Tablet breakpoint */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    header {
        flex-direction: row; /* Logo and text side-by-side */
        justify-content: center; /* Center items horizontally */
        gap: 30px; /* More space */
    }

        header .header-text {
            text-align: left; /* Align header text left */
        }

    #contact .container {
        flex-direction: row; /* Image and text side-by-side */
        align-items: flex-start; /* Align items to top */
        gap: 40px; /* Space between image and text */
    }

    #contact img.profile-pic {
        margin-bottom: 0; /* Remove bottom margin when side-by-side */
        align-self: flex-start; /* Align image to top */
    }

    #contact h2 {
        margin-top: 0; /* Remove potential top margin */
    }

    #services .grid {
        grid-template-columns: 1fr 1fr; /* Two columns for services */
        gap: 40px;
    }
    /* Remove the specific odd/even column targeting unless needed for complex layouts */
}

@media screen and (min-width: 1024px) { /* Desktop breakpoint */
    /* Further adjustments if needed for larger screens */
    .container {
        padding: 0 40px; /* More horizontal padding on large screens */
    }
}
