
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}


.banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

nav {
    background-color: #800020; 
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}


.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    position: relative;
    width: 100%;
    padding-top: 100%; 
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.card span {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #800020; 
    font-size: 1rem;
    font-weight: bold;
    background: rgba(255,255,255,0.7);
    padding: 5px 10px;
    border-radius: 5px;
}


.grid-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-home .cell {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.grid-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.grid-home p {
    font-weight: bold;
    color: #000;
    padding: 1rem;
    text-align: justify;
}


.grid-wide {
    grid-column: span 2;
    height: 250px;
}


footer {
    background-color: #800020; 
    color: white;
    text-align: center;
    padding: 0.3rem;
    font-weight: bold;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 5;
}


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}


#popup {
    background: white;
    border: 2px solid #800020;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


#popup button {
    background: #800020;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#popup button:hover {
    background: #a00030;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.services-grid .card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
}

.services-grid .card h3 {
    margin-bottom: 1rem;
    color: #800020;
}


.info-box {
    background: #fff;
    margin: 20px auto;
    padding: 2rem;
    max-width: 800px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    line-height: 1.8;
}


.map-box {
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.map-box img {
    width: 100%;
    display: block;
}


.grid-home-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-home-rows .cell {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    min-height: 200px;
}


.grid-home-rows a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.grid-home-rows p {
    font-weight: bold;
    color: #000;
    padding: 1rem;
    font-size: 1.3rem;
    text-align: left;
}


.grid-home-rows .cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1; 
}
