body {
    margin: 0;
    font-family: 'Frank Ruhl Libre', serif;
    background-color: #f8f9fa;
}

.top-header {
    background-color: white;
    color: black;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-weight: bold;
    flex-wrap: nowrap;
    gap: 15px;
    box-sizing: border-box;
    max-height: 100vh;
    overflow-y: auto;
}

.top-header a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.top-header a:hover {
    color: #ffb4a2;
}

.top-header img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    margin-right: auto;
}

/* Hamburger Menu Base Styles */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

@media (max-width: 1100px) {
    .top-header a {
        font-size: 0.8rem;
    }
    .top-header {
        gap: 10px;
        padding: 10px 15px;
    }
    .nav-links {
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .top-header {
        flex-wrap: wrap;
        justify-content: flex-end;
        padding: 10px 20px;
        gap: 15px;
    }
    .top-header img {
        margin-right: auto;
    }
    .top-header a.persistent-link {
        font-size: 0.85rem !important;
    }
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 15px;
        gap: 15px;
    }
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }
}

.header-banner {
    position: relative;
    background-color: white;
    padding: 40px 20px;
    text-align: center;
    color: #333;
}


.header-banner h1 {
    margin: 0;
    font-size: 2.5rem;
    border-bottom: 3px solid #dd22a8;
    display: inline-block;
    padding-bottom: 5px;
}

.services-main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Creates the Table Look */
.chess-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #ddd;
    background-color: #fff5ec;
}

.grid-image,
.grid-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-image {
    background-color: white;
    padding: 0;
    /* Lets image touch the edges fully */
}

.grid-text {
    background-color: #fff5ec;
    /* Restores the pale peach to the text blocks */
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-text h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.grid-text p {
    line-height: 1.6;
    color: #555;
}

.learn-more {
    color: hotpink;
    text-decoration: none;
    font-weight: 700;
}

.service-footer {
    margin-top: 40px;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Stacks into a single column on mobile */
@media (max-width: 768px) {

    .chess-grid {
        grid-template-columns: 1fr;
    }

    .grid-image,
    .grid-text {
        padding: 20px;
    }
}

.site-footer {
    text-align: center;
    padding: 20px;
    color: #666;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    background-color: white;
}

.site-footer p {
    margin: 0;
}