/*
Theme Name: Douglas Electrical Service
Theme URI: https://www.desdfw.com/
Author: Your Name
Author URI: https://desdfw.com/
Description: A one-page theme for Douglas Electrical Service
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: douglaselectrical
*/

html, body {
    overflow-x: hidden;
}

#contact {margin-bottom:55px;}

@media screen and (max-width:768px) {
	#contact {margin-bottom:165px;}
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 15px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #114B8C;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 40;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
}

.mobile-menu:not(.hidden) {
    display: block;
    max-height: 500px; /* Adjust as needed */
}


@media screen and (max-width: 768px) {
    .hidden.md\:flex {
        display: none;
    }

    .hidden.sm\:inline-flex {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}