/* General Styles */

body {
    font-family: 'roboto', sans-serif;
    background-color:rgb(242, 248, 250)
}

html, body {
    overflow-x: hidden;
}

ul {
    display:flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

h1, h2, h3, h4, h5, h6, p {
    color: rgb(38, 93, 165);
}

h1 {
    font-size: 36px;
    margin-bottom: 10px;
    margin-top: 10px;
}
h2 {
    font-size: 28px;
    margin: 0;
}

.green {
    color: rgb(73, 184, 78);
}

p {
    font-size: 18px;
    line-height: 1.6;
}

.underline {
    text-decoration: underline;
}

a {
    color: rgb(38, 93, 165);
    text-decoration: none;
}

/* Navigation Bar */
.container__nav {
    background-color: rgb(242, 248, 250);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    border-bottom: 2px solid rgb(38, 93, 165);
}

.nav__links a {
    align-items: center;    
    color: rgb(38, 93, 165);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 20px;
}

.nav__links {
    margin-right: 20px;
}

.nav__logo--container .nav__logo{
    height: 75px;
    width: auto;
}

.nav__link:hover {
  cursor: pointer;
  transition: all 200ms ease;
  border-bottom: 3px solid rgb(73, 184, 78);
}

/* Welcome section layout */
.container.welcome {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
}
.welcome__left {
    flex: 1 1 50%;
    max-width: 500px;
}
.free__estimate--container {
    display: flex;
    align-items: center;
    font-size: 28px;
    text-align: center;
    padding-bottom: 10px;
    max-height: 44px;
}
.free__estimate:hover {
    cursor: pointer;
    transition: all 200ms ease;
    border-bottom: 3px solid rgb(73, 184, 78);
    margin-bottom: -3px;
}
.welcome__left--social-media {
    display: flex;
    box-sizing: border-box;
    overflow: hidden;
    padding: 2px 2px;
}

.social__media--content {
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 24px;
    color: rgb(38, 93, 165);
    position: relative;
    padding: 10px 10px;   
}
.social__media--content.yelp:hover::after {
    content: 'Yelp';
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: -1;
    font-size: 14px;
    display: inline-block;
    transform: all 200ms ease;
}
.social__media--content.instagram:hover::after {
    content: 'Instagram';
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: -1;
    font-size: 14px;
    display: inline-block;
    transform: all 200ms ease;
}

.social__media:hover, .fa-brands:hover {
    transform: scale(1.1);
    transition: all 200ms ease;
}

.social__media:active, .fa-brands:active {
    transform: scale(.9);
    transition: all 200ms ease;
}

.social__media {
    height: 24px;
    width: auto;
    filter: hue-rotate(200deg);
}

.social__media--content {
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 75px;
    height: auto;
}

.welcome__right {
    flex: 0 0 50%;
    display: flex;
    justify-content: right;
    align-items: center;
}

/* Rotator styles */
.rotator {
    position: relative;
    width: 100%;
    max-height: 350px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(73, 184, 78);
    background: linear-gradient(180deg, #f7fbfc 0%, #e9f3f7 100%);
    transition: transform 300ms ease;
}
.rotator__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 700ms ease;
}
.rotator__img.active {
    opacity: 1;
}

.rotator:hover {
    transform: scale(1.02);
}



/* Footer styles */
.container.footer {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    color: rgb(38, 93, 165);
    border-top: 2px solid rgb(38, 93, 165);
}

.footer__logo {
    height: 150px;
    width: auto;
    margin-bottom: 10px;
}

.credit {
    font-size: 14px;
    color: rgb(38, 93, 165);
}

/* Responsive: stack on small screens */
@media (max-width: 720px) {
    .container.welcome {
        flex-direction: column;
        padding: 10px;
    }
    .welcome__right {
        width: 100%;
    }
    .nav__links a {
        font-size: 16px;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        text-align: right;
        margin: 0 5px
    }

    .nav__links {
        margin-right: 20px; 
    }

}

@media (max-width: 560px) {
    ul {
        display: list-item
    }

    li {
        margin-bottom: 8px;

    }
    .nav__logo--container .nav__logo{
        height: 60px;
        width: auto;
    }
}

/* Modal (left sliding panel) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
    z-index: 60;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 360px;
    max-width: 90%;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0,0,0,0.16);
    transform: translateX(-110%);
    transition: transform 350ms cubic-bezier(.2,.9,.2,1);
    z-index: 70;
    display: flex;
    flex-direction: column;
}
.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
}
.modal__header {
    background: rgb(38, 93, 165); /* primary blue */
    color: #fff;
}
.modal__header h2 { margin: 0; font-size: 20px; }
.modal__body {
    padding: 16px 18px;
    overflow: auto;
}
.modal__close {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}
.modal__close:hover { background: rgba(255,255,255,0.18); }
.modal--left.open {
    transform: translateX(0);
}
.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}
.services-list {
    padding-left: 18px;
}
.services-list {
    display: list-item;
    padding: 0;
    margin: 0;
}
.services-list li {
    margin: 10px 0;
    padding-left: 12px;
    color: rgb(38, 93, 165);
    font-weight: 600;
    position: relative;
}
.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    background: rgb(73, 184, 78); /* green accent */
    border-radius: 50%;
}

@media (max-width: 520px) {
    .modal { width: 100%; }
}