*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    max-width: 100%;
}

/* Header */
#header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 12px;
}

#logo img {
    max-height: 42px;
    width: auto;
}

/* Botão hambúrguer */
.mobile-menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 10001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: #222;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navegação mobile */
#nav-menu-container {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: #ffffff;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 10000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

#nav-menu-container.open {
    transform: translateY(0);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    border-bottom: 1px solid #eee;
}

.nav-menu > li > a,
.nav-menu .submenu-toggle {
    display: block;
    padding: 14px 16px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.nav-menu li ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

.nav-menu li.open > ul {
    display: block;
}

.nav-menu li ul a {
    display: block;
    padding: 10px 16px 10px 28px;
    color: #444;
    text-decoration: none;
    font-weight: 400;
    border-top: 1px solid #f3f3f3;
}

/* Hero */
#hero {
    padding: 100px 0 60px;
    text-align: center;
}

#hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.1;
}

#hero h2 {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    line-height: 1.4;
    margin-top: 16px;
}

.btn-get-started {
    display: inline-block;
    margin-top: 22px;
}

/* Forms and blocks */
#call-to-action form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#call-to-action input[type="text"],
#call-to-action input[type="email"],
#call-to-action button,
#contact input,
#contact textarea,
#contact select {
    width: 100%;
    max-width: 100%;
}

#contact .form-group {
    margin-bottom: 14px;
}

/* Map */
.map-container {
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    #about .background {
        min-height: 260px;
        margin-top: 20px;
    }

    #contact .social-links {
        text-align: center;
        margin-top: 16px;
    }

    .cf-turnstile {
        transform: scale(0.95);
        transform-origin: left top;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .header-inner {
        min-height: 58px;
    }

    #nav-menu-container {
        top: 58px;
        max-height: calc(100vh - 58px);
    }

    #hero {
        padding: 86px 0 48px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero h2 {
        font-size: 1rem;
    }

    .btn-get-started {
        width: 100%;
        max-width: 320px;
    }

    #contact .social-links a,
    #team .member .social a {
        width: 38px;
        height: 38px;
        line-height: 38px;
    }

    .map-container iframe {
        height: 240px;
    }

    .cf-turnstile {
        transform: scale(0.88);
        transform-origin: left top;
    }
}
