/* Global styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* Top Bar Styling */
.top-bar {
    background-color: #333; /* Add the orange background */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.contact-bar {
    background-color: #333; /* Only apply color on contact page */
}

.container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.logo-container {
    flex: 1;
}

.logo {
    max-width: 150px;
}

/* Hamburger Menu Styling */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100; /* Above the navigation */
    margin-left: auto; /* Align to the right */
    position: absolute; /* Place it relative to the container */
    right: 20px; /* Adjust distance from the right edge */
    top: 20px; /* Align with top spacing */
}

.hamburger div {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Change menu appearance when open */
.hamburger.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open div:nth-child(2) {
    opacity: 0;
}

.hamburger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.menu {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.menu ul {
    list-style: none;
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 20px;
    background-color: #333;
    position: absolute;
    top: 100px;
    right: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
}

.menu ul.show {
    display: flex;
}

.menu ul li {
    text-align: center;
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.menu ul.open {
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    height: auto;
    gap: 20px;
    padding: 20px 0;
    z-index: 1000;
    display: none;
}

.menu ul.open.show {
    display: flex;
}

.menu ul li a:hover {
    color: #f39c12;
}

/* Bible Verse Section */
.verse {
    background-color: #f39c12;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
}

/* Hero Section */
header.hero {
    background-image: url('images/heroimage.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    padding: 10px 20px;
    background-color: #f39c12;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e67e22;
}

/* Contact Section Styling */
.contact {
    background-color: #f39c12;
    color: #fff;
    padding: 20px 20px;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

.contact a:hover {
    color: #e67e22;
}


/* Services Section */
.services {
    padding: 50px 20px;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* Services Page Styling */
.services-page {
    padding: 100px 20px;
    background: #fefefe;
    color: #333;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
}

.services-heading {
    font-size: 3rem;
    color: #333;
    margin-bottom: 40px;
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
}

.services-description {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
}

/* Service List with Animation */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    transition: all 0.3s ease-in-out;
}

/* Service Cards with Hover Effects */
.service-card {
    background-color: #fdfdfd;
    color: #333;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

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


.service-card h2 {
    font-size: 1.8rem;
    color: #f79c0a;
    margin-bottom: 15px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.service-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

/* Special Flair for Hover */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(243, 156, 18, 0.5), rgba(230, 126, 34, 0.5));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.service-card:hover::before {
    opacity: 1;
}



.service-item {
    flex: 1;
    max-width: 300px;
    text-align: center;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* Add this to ensure consistent image size on both pages */
.service-item img, .service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures consistent aspect ratio and fitting */
    border-radius: 10px;
    margin-bottom: 20px;
}


/* Contact Us Page */
.contact-page {
    padding: 100px 20px 50px 20px;
    text-align: center;
    background-color: #fff;
}

.contact-page h1 {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.contact-page p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Call to Action Styling */
.call-to-action {
    margin: 30px 0;
}

.call-to-action .cta-button {
    padding: 15px 30px;
    background-color: #f39c12;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.phonelink:hover {
    color: #333;
}

.call-to-action .cta-button:hover {
    background-color: #e67e22;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.footer p {
    margin: 0;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 28px 16px;
    }

    .services {
        padding: 30px 15px;
    }

    .services h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .service-item {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .service-item img {
        height: auto;
    }

    .contact-page h1 {
        font-size: 2rem;
    }

    .contact-page p {
        font-size: 1rem;
    }
    .menu {
        position: relative;
    }

    .menu ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Call to Action Button with Animation */
.cta-service-button {
    padding: 12px 30px;
    background-color: #e67e22;
    color: #fff;
    font-size: 1.2rem;
    border-radius: 5px;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px;
}

.cta-service-button:hover {
    background-color: #d35400;
    transform: translateY(-5px);
}

    .call-to-action .cta-button {
        font-size: 1.2rem;
    }

    .contact {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .service-list {
        flex-direction: column;
        align-items: center;
    }

    .services h2 {
        font-size: 1.6rem;
    }

    .service-item {
        margin-bottom: 25px;
    }

    .contact-page h1 {
        font-size: 1.8rem;
    }

    .contact-page p {
        font-size: 0.9rem;
    }

    .call-to-action .cta-button {
        font-size: 1rem;
    }

    .contact a {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .menu ul {
        display: flex !important; /* Ensure it displays on larger screens */
        flex-direction: row;
        gap: 30px;
        position: static; /* Reset positioning */
        background: none; /* Remove background */
        padding: 25px 0 0 0; /* Remove extra padding */
    }
}
