/* Resetting styles and setting defaults */
body, h1, h2, h3, p, a {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    text-decoration: none;
    color: #333;
}

/* Apply Ironwood font to all h1 headers */
h1 {
    font-family: "ironwood-std", sans-serif;
    font-size: 100px !important; /* Adjusted for better mobile view */
    font-weight: 100 !important;
    font-stretch: 150% !important;
}

/* Navbar styles */
header {
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    width: 100%;
    max-width: 100px;
    max-height: 100px;
    transition: max-height 0.3s ease, transform 0.3s ease;
}

.nav-links {
    display: flex;
    justify-content: space-evenly;
    flex: 1;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

nav a {
    color: #fff;
    margin: 0 15px; /* Reduced margin for better fit on small screens */
    font-size: 16px; /* Slightly smaller font size for mobile */
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
    margin: 0 auto;
}

nav a:hover::after {
    width: 100%;
}

#profile-container {
    display: flex;
    align-items: center;
    width: 100px;
    flex-shrink: 1;
}

#profile-icon {
    font-size: 40px; /* Reduced size for better mobile fit */
    transition: font-size 0.3s ease;
}

/* Shrinking styles when scrolling */
header.shrink {
    padding: 5px;
}

.nav-logo img.shrink {
    max-height: 50px;
    max-width: 50px;
}

#profile-container.shrink{
    width:50px;
    height:50px;
    padding-right:25px;
}

#profile-icon.shrink{
    font-size: 30px;
}

/* Main content and Hero Section styles */
main {
    text-align: center;
    padding: 0;
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: calc(100vh - 50px);
    box-sizing: border-box;
    background-color: ivory;
}

.hero {
    position: relative;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 50px; /* Smaller font size for mobile */
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 24px; /* Smaller font size for mobile */
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.btn {
    display: inline-block;
    background-color: #f04;
    color: #fff;
    padding: 10px 20px; /* Adjusted padding for better fit */
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 2;
}

.btn:hover {
    background-color: #c03;
}

/* Services and Map Section styles */
.services-map {
    display: flex;
    gap: 20px;
    padding: 50px 20px;
}

.map-column {
    flex: 1;
    align-content: center;
}

.services-column {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fff;
    width: 95%;
    height: 190px;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 10px;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
}

.service-card i {
    font-size: 24px;
    color: #f04;
    margin-bottom: 15px;
}

.service-card h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #333;
}

.service-card p {
    font-size: 16px;
    color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    color: #fff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero {
        height: auto; /* Allow hero section to adjust to content */
        padding: 100px; /* Added padding for better spacing */
    }

    nav a {
        margin: 5px 0; /* Stack navigation links vertically */
        font-size: 14px; /* Smaller font size for compact display */
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 10px 20px; /* Adjusted padding for mobile */
    }

    .services-map {
        flex-direction: column;
    }

    .services-column {
        grid-template-columns: 1fr;
        align-items: center;
        justify-items: center;
    }

    .service-card {
        width: 80%;
        height: auto;
    }

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

    .feature {
        margin-bottom: 30px;
    }
}
