/* General styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #fff;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    padding-top: 60px; /* Adjusted offset for the shorter header */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px; /* Reduced padding to make header shorter */
    background-color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-width: 120px; /* Reduced logo size */
    transition: max-width 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

/* --- Navigation --- */
.nav-wrapper {
    display: flex;
    align-items: center;
}

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

nav li {
    margin-right: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00A9E0;
}

.cta-button {
    background-color: #00A9E0;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

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

/* --- Hamburger Menu --- */
.nav-toggle {
    display: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

.nav-toggle:checked ~ .nav-toggle-label span {
    background-color: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Banner */
.banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 20px;
    text-align: center;
}

.banner-text h1 {
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-text p {
    margin-bottom: 40px;
}

.button-link {
    background-color: #00A9E0;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-link:hover {
    background-color: #00529B;
}

/* Sections */
.services, .about-us, .servicos-realizados {
    padding: 80px 0;
}

h2 {
    text-align: center;
    color: #000000;
    margin-bottom: 60px;
}

/* --- Responsive Styles --- */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .service-columns {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-column {
        flex-basis: 45%;
        margin-bottom: 30px;
    }

    .video-item {
        flex-basis: calc(50% - 20px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
        z-index: 1001;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 70%;
        max-width: 320px;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.35s ease-in-out;
        z-index: 1000;
    }

    .nav-toggle:checked ~ .nav-wrapper {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav li {
        margin: 0 0 25px;
    }

    nav a {
        font-size: 1.2rem;
    }

    .cta-button {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }

    .banner-text h1 {
        font-size: 2.5rem;
    }

    .banner-text p {
        font-size: 1.2rem;
    }

    .services, .about-us, .servicos-realizados {
        padding: 60px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .service-columns, .about-us-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .service-column {
        flex-basis: 100%;
        margin-bottom: 0;
    }

    .video-item {
        flex-basis: 100%;
    }
}

/* Smaller Mobile Devices */
@media (max-width: 420px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 15px 20px;
    }
    
    .logo img {
        max-width: 150px;
    }

    .banner-text h1 {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    .banner-text p {
        font-size: 1rem;
    }

    .services, .about-us, .servicos-realizados {
        padding: 50px 0;
    }

    footer {
        padding: 50px 20px;
    }

    h2 {
        font-size: 1.7rem;
    }
}

/* Smallest Mobile Devices */
@media (max-width: 320px) {
    .logo img {
        max-width: 130px;
    }

    .banner-text h1 {
        font-size: 1.7rem;
    }

    .banner-text p {
        font-size: 0.95rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    
    .service-column h3 {
        font-size: 1.3rem;
    }
}

/* Services */
.service-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.service-column {
    text-align: center;
    flex-basis: 31%;
}

.service-column .icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #00A9E0;
}

.service-column h3 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 15px;
}

/* About Us */
.about-us {
    background-color: #f9f9f9;
}

.about-us-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-us-text {
    flex: 1;
}

.about-us-text p {
    position: relative;
    padding-left: 20px;
}

.about-us-text p::before {
    content: '“';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2em;
    color: #00A9E0;
    line-height: 1;
}

.about-us-image {
    flex: 1;
}

.about-us-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Servicos Realizados */
.servicos-realizados {
    background-color: #fff;
}

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.video-item {
    flex-basis: calc(33.333% - 20px);
    box-sizing: border-box;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Footer */
footer {
    background-color: #000000;
    color: #fff;
    padding: 60px 20px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.contact-info a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #00A9E0;
}

.phone-number-link {
    cursor: pointer;
    text-decoration: underline;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #222;
    color: #fff;
    box-sizing: border-box;
}

form button {
    background-color: #00A9E0;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #00529B;
}

.footer-bottom {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.social-icons a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    font-size: 20px;
}

/* Modal Alert Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 320px;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
}

.modal-content button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#call-button {
    background-color: #4CAF50;
    color: white;
}

#whatsapp-button {
    background-color: #25D366;
    color: white;
}

#cancel-button {
    background-color: #f44336;
    color: white;
    margin-top: 15px;
}

#call-button:hover, #whatsapp-button:hover, #cancel-button:hover {
    opacity: 0.9;
}

/* Form Layout for Desktop */
@media (min-width: 768px) {
    footer form {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    footer form input[type="email"],
    footer form input[type="tel"] {
        width: calc(50% - 10px);
    }

    footer form textarea,
    footer form button {
        width: 100%;
    }
}

/* Even Smaller Mobile Devices */
@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    .logo img {
        max-width: 100px;
    }

    .banner-text h1 {
        font-size: 1.8rem;
    }

    .banner-text p {
        font-size: 0.9rem;
    }

    .services, .about-us, .servicos-realizados {
        padding: 40px 0;
    }

    h2 {
        font-size: 1.5rem;
    }

    footer {
        padding: 40px 15px;
    }
}
