/* General Body Styles */
body {
    font-family: 'Noto Sans Mono', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #a0ecff;
    /* Light grey background for a clean look */
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Container for the three-column layout */
.main-container {
    display: flex;
    flex-wrap: nowrap;

    width: 100%;
    align-items: center;
}

/* Shared styling for all sections */
.split-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Column-specific flex properties */
.man-section {
    flex: 1;
    min-width: 250px;
    order: 1;
}

.text-section {
    flex: 1.2;
    /* Make the center text column slightly wider */
    min-width: 320px;
    order: 2;
}

.toilet-section {
    flex: 1;
    min-width: 250px;
    order: 3;
}

@media (max-width: 1024px) {
    .main-container {
        flex-wrap: wrap;
        align-items: center;
        padding-bottom: 1rem;
    }

    .man-section {
        order: 3;
        min-width: 40%;

        padding: 0;
    }

    .toilet-section {
        flex: 0.7;
        min-width: 20%;
        padding: 0;
    }

    .text-section {
        flex: 1 1 100%;
        min-width: unset;
    }
}

/* Image styling */
.split-section img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    /* Constrain image height */
}

.running-man {
    animation: run-in-place 1s infinite alternate;
}

.clogged-toilet {
    animation: shake 2s infinite ease-in-out;
    animation-delay: 0.5s;
    scale: 0.9;
}

/* Text content styling */
.content-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #5b4039;
    margin: 0;
    line-height: 1.1;
}

.content-wrapper .motto {
    font-size: 1.5rem;
    font-weight: 400;
    color: #5b4039;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #5b4039;
    padding-bottom: 1rem;
    display: inline-block;
}

.content-wrapper .features {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5b4039;
    margin-bottom: 1.5rem;
}

.phone-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #28a745;
    background-color: #e9f7ec;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 80%;
    white-space: nowrap;
}

.content-wrapper .phone-number:hover {
    transform: scale(1.05);
    background-color: #d4f0db;
}

@media (max-width: 756px) {
    .phone-number {
        white-space: wrap;
        font-size: 1.4rem;
    }
}

.content-wrapper .region {
    font-size: 1.5rem;
    font-weight: 400;
    color: #5b4039;
    margin-top: 0;
}

/* Generic Info Section */
.info-section {
    padding: 1rem 2rem;
    background-color: #ffffff;
    text-align: center;
    border-radius: 64px 64px 0 0;
    flex: 1;
}

.info-section h2 {
    font-size: 2.5rem;
    color: #5b4039;
    margin-bottom: 2rem;
    line-height: normal;
    margin-bottom: 5rem;
    margin-top: 1rem;
}

.services-grid-initial {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid-vik {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.special-case-service-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    align-content:start;
}

.about-us {
    font-size: 1.5rem;
    text-align: justify;
    margin: 64px;
}

@media (max-width: 768px) {
    .services-grid,
    .services-grid-vik {
        display: flex;
        flex-direction: column;
    }
    .special-case-service-card {
        height: fit-content;
    }
    .about-us {
        text-align: left;
        margin: 0;
        margin-bottom: 32px;
    }

    .info-section h2 {
        margin-bottom: 2rem;
    }

}

.service-card {
    background: #65656536;
    margin: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    align-content: center;
    border-style: solid;
    border-width: 0.15rem;
    border-color: #2965b4;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: fit-content;
    height: fit-content;
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 24px;
    text-align: justify;
    width: fit-content;
    color: #5b4039;
}

@media (max-width: 768px) {
    .service-card h3 {
        text-align: left;
    }
}

/* Footer */
footer {
    background-color: #343a40;
    color: #ffffff;
    text-align: center;
    padding: 1.5rem;
}

/* Keyframe animations */
@keyframes run-in-place {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Responsive Design: Media Queries */
@media (max-width: 992px) {
    .content-wrapper h1 {
        font-size: 2rem;
    }

    .content-wrapper .motto {
        font-size: 1.2rem;
    }

    .content-wrapper .phone-number {
        font-size: 1.8rem;
    }
}

banner {
    background-color: white;
    display: flex;
    /* justify-items: flex-start; */
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    padding-right: 5%;
}

ol {
    margin: 0;
}

.crumbs ol {
    list-style-type: none;
    padding-left: 0;
}

.crumb {
    display: inline-block;
}

.dropbtn {
    display: block;
    color: #5b4039;
    background-color: unset;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 700;
    padding: 0 12px;
    height: 64px;
    align-content: center;
    user-select: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 64px;
}

.dropdown-content a {
    color: #5b4039;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}

.crumb:hover,
.dropdown-content a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}