/* ============================
   Base Styles
   ============================ */
:root {
    --color-primary: #2c3e50;
    --color-secondary: #d1b894;
    --color-accent: #4a5e71;
    --color-white: #ffffff;
    --color-background: rgba(255, 255, 255, 0.95);

    --font-primary: "Domine", serif;
    --font-secondary: "Montserrat", sans-serif;

    --container-width: 68.75rem;
    --section-width: 50rem;
    --spacing-standard: 4rem;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: var(--color-primary);
    background: url("assets/background3.jpg") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    margin-right: 1rem;
    margin-left: 1rem;
}

/* ============================
   Header Styles
   ============================ */
.main-header {
    background-color: var(--color-primary);
    border-bottom: 0.25rem solid var(--color-accent);
    color: var(--color-white);
    padding: 1.875rem 0;
    text-align: left;
}

.header-wrapper {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.header-content .logo {
    width: 5rem;
    height: auto;
    margin-right: 2.5rem;
}

.header-content h1 {
    font-family: var(--font-primary);
    line-height: 1.3;
    font-size: 2rem;
    margin: 0;
}

.header-content p {
    line-height: 1;
    font-size: 1.5rem;
    font-style: italic;
    margin: 0.3125rem 0 0;
}

.header-content p:last-child {
    opacity: 0.8;
}

/* ============================
   Navigation Styles
   ============================ */
.navigation {
    flex-grow: 0;
    margin-left: 2.5rem;
}

.navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.navigation ul li {
    flex: 0 0 auto;
    text-align: center;
}

.navigation ul li a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.navigation ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================
   Section Styles
   ============================ */
.section {
    padding: 1rem var(--spacing-standard) 2rem;
    margin: 2.5rem auto;
    background: var(--color-background);
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.025);
    max-width: var(--section-width);
    scroll-margin-top: 6.25rem;
}

.section h2 {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    padding: 1.25rem 0 0.9375rem;
    margin-bottom: 1.25rem;
    border-bottom: 0.125rem solid var(--color-secondary);
    color: var(--color-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-wrapper {
    padding: 0.5rem var(--spacing-standard) var(--spacing-standard);
}

/* Content Styles */
.services-list ul,
.fees-info ul,
.location-info ul,
.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.opening-hours ul {
    width: 220px;
    /*padding: 0;*/
    /*margin: 0;*/
}

.opening-hours li {
    display: flex;            /* Enable flexbox */
    justify-content: space-between; /* Justify items across the row */
    list-style-type: inside;   /* Remove default bullet points */
    padding: 0;              /* Remove default padding */
    margin: 0;               /* Remove default margin */
}

.services-list li::before {
    content: "✔";
    color: var(--color-primary);
    margin-right: 0.625rem;
}

/* ============================
   Footer Styles
   ============================ */
.main-footer {
    background: #f2ece3;
    color: var(--color-primary);
    text-align: center;
    padding: 1.875rem 0;
    border-top: 0.25rem solid var(--color-secondary);
    margin-top: auto;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content .logo {
    width: 4.375rem;
    height: auto;
    margin-bottom: 0.625rem;
    filter: brightness(0.2);
}

.footer-content p {
    margin: 0.3125rem 0;
    font-size: 1rem;
}

/* ============================
   Media Queries
   ============================ */
@media (max-width: 1150px) {
    .header-wrapper {
        flex-direction: column;
    }

    .navigation {
        margin: 1.25rem 0 0;
        width: 100%;
    }

    .navigation ul {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: auto;
    }

    .navigation ul li {
        margin: 0 0.3125rem;
    }

    .navigation ul li a {
        font-size: 0.875rem;
        padding: 0.5rem 0.625rem;
    }

    .section {
        padding: 1rem 1.25rem;
    }

    .about-wrapper {
        padding: 0.5rem 1.25rem 2rem;
    }
}
