/* Reset some default styles for consistency */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #000;
    font-family: 'Lobster Two', cursive, Arial, sans-serif;
    background-color: #f9f9f9;
    line-height: 1.6;
}

/* Header styles */
/* Updated header styles for sticky behavior */
header {
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 999; /* ensures it stays above other content */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 10px 20px ;
    box-sizing: border-box; /* include padding in height calculation */
}

header .logo img {
    max-width: 250px;
    height: auto;
    border-radius: 8px; /* Optional: Rounded logo */
}

nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    display: flex;
}

nav a {
    transition: background-color 0.3s, color 0.3s;
    color: #000;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 25px;
    border-radius: 4px;
    padding: 8px 12px;
}

nav a:hover {
    background-color: #68a33e;
    color: #fff;
}

a {
    width: 90%;
    height: 60px; 
}


/* Banner image styling */
.box img.pic {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Main content styles */
.row {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.box {
    flex: 1 1 300px;
    margin: 10px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ytembed {
    position:relative;
    justify-content: center;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.ytembed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.center-div {
    text-align: center;
}
div .box img {
    width: 100%;
    height: auto;
}

/* Contact buttons styling */
.contact-bttns {
    display: inline-block;
    margin: 10px 10px;
    padding: 12px 12px;
    background-color: #68a33e;
    color: #fff;
    text-decoration: none;
    text-align: center;
    justify-content: center;
    font-weight: 600;
    transition: background-color 0.3s;
}

.contact-buttons-container {
  display: flex;
  justify-content: center;
  gap: 10px; /* optional, adds space between items */
  margin-top: 10px; /* optional, space above/below */
}

.contact-bttns:hover {
    background-color: #68a33e;
}

/* Social media images styling */
.linked-image {
    border-radius: 50%;
    border: 2px solid #fff;
    transition: transform 0.3s, border-color 0.3s;
    outline: none;
}

.linked-image:hover {
    transform: scale(1.05);
    border-color: #68a33e;
}

.social-media-logos {
    display: block;           /* Make each container a block element */
    margin: 10px auto;        /* Center horizontally on the page */
    text-align: center;       /* Center the content inside the container */
}

a.linked-image {
    border: none;
    display: inline-block; /* ensure inline-block for size control if needed */
}

span {
    font-size: 20px;
}

.call {
    display: flex;
}

/* About Us section */
h1 {
    font-size: 40px;
    font-family: 'Lobster Two', cursive, Arial, sans-serif;
    color: #68a33e;
}

h3 {
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #000;
}

h4 {
    font-size: 17.5px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #000;
}

p {
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #000;
}

html {
    scroll-padding-top: 180px; /* adjust this value to match your header height */
}

/* Default: hide nav on small screens */
@media (max-width: 767px) {
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    /* Show nav when active */
    nav.nav-active {
        display: flex;
    }

    /* Basic hamburger styles */
    /* Ensure the hamburger container uses flexbox with space between lines */
/* Basic hamburger styles */
    .hamburger {
        width: 35px;
        height: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* The lines */
    .line {
        height: 4px;
        background-color: #000;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Transform into "X" when open */
    .hamburger.open .line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.open .line:nth-child(2) {
        opacity: 0; /* hide the middle line for X shape, optional */
    }

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

/* Responsive adjustments */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        display: flex;
    }

    header .logo img {
        max-width: 350px;
        height: auto;
        border-radius: 8px; /* Optional: Rounded logo */
    }

    .hamburger {
        display: none;
    }

    nav {
        flex-direction: row;
        gap: 10px;
        margin-top: 10px;
    }
    
    nav a {
        font-size: 35px;
    }

    .row {
        flex-direction: row;
        align-items: center;
    }

    .box {
        width: 100%;
    }
    
    a {
        width: 90%;
        height: 90px; 
    }

    span {
    font-size: 40px;
    }
    
    div .box img {
        width: 100%;
    }
}

@media (min-width: 1024px) {    
    header {
        flex-direction: row;
        display: flex;
    }

    header .logo img {
        justify-content: center;
        max-width: 200px;
        max-height: auto;
    }

    /* If you want to scale down everything inside header more uniformly */
    header * {
        /* Optional: decrease font size, padding, etc. */
        font-size: 18px; /* example */
    }

    .hamburger {
        display: none;
    }

    nav {
        flex-direction: row;
        gap: 10px;
        margin-top: 10px;
    }

    nav a {
        font-size: 35px;
    }

    .row {
        flex-direction: row;
        align-items: center;
    }

    .box {
        width: 100%;
    }

    a {
        width: 90%;
        height: 90px;
    }

    .call {
        display: none;
    }

    div .box img {
        width: 75%;
        justify-self: center;
        display: flex;
        padding: 50px 0 50px 0;
    }

    .ytembed {
        position:relative;
        justify-content: center;
        width: 100%;
        padding-bottom: 35%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
    }
}

/* Footer styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: #fff;
    margin-top: 40px;
}

footer p {
    color: #fff;
    font-size: 20px;
    line-height: 1.6;
}

footer a {
    color: #fff;
    height: 0px;
}