/* ==========================================================================
   Responsivo - Mobile (max-width: 576px)
   ========================================================================== */

@media (max-width: 576px) {
    /* Header e Navegação */
    .header {
        background-color: var(--bg-color);
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        height: 60px;
        display: flex;
        align-items: center;
    }

    .nav-container {
        padding: 0 1rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
    }

    .logo {
        font-size: 1.2rem;
        color: var(--white);
        z-index: 1001;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        top: 0;
        right: 0;
        padding: 0;
        z-index: 1001;
        height: 24px;
        justify-content: center;
        align-items: center;
    }

    .menu-toggle span {
        width: 24px;
        height: 2px;
        background-color: var(--white);
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .menu-toggle.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 2rem;
        gap: 1.5rem;
        z-index: 999;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
    }

    .nav-links li {
        list-style: none;
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 400;
        opacity: 0.9;
        transition: opacity 0.3s ease;
        padding: 0.8rem 1.2rem;
        color: var(--white);
        text-decoration: none;
        display: block;
        width: 100%;
    }

    .nav-links a:hover {
        opacity: 1;
    }

    /* Hero Section */
    .hero {
        padding-top: 60px;
        background-image: url('../img/responsivo/hero-responsivo.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
        width: 100%;
    }

    .hero-content {
        padding: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        background-image: none;
    }

    .hero-text {
        order: 2;
        padding: 0;
        margin: 0;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        order: 1;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: hidden;
        margin-top: 50px;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        object-fit: cover;
    }

    h4.hero-subtitle {
        margin-left: 140px;
        font-size: 1.3rem;
        width: 100%;
        margin-bottom: -25px;
    }

    h1.hero-title {
        font-size: 5rem;
        margin: 0;
        width: 100%;
    }

    .hero-name-macedo {
        font-size: 1rem;
        margin-left: 60px;
        margin-top: -10px;
        width: 100%;
    }

    .hero-text h3 {
        font-size: 1rem;
        margin: 0;
        width: 100%;
    }

    /* Connections Section */
    .connections {
        margin: 15px;
    }

    .connections h2 {
        font-size: 1.5rem;
    }

    .demonstração bnt-san{
        margin-top: 0px;
        margin-bottom: 0px;
    }


    /* Livros Section */
    .livros {
        text-align: center;
        padding: 1rem 1rem;
    }

    .livros h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        padding-left: 0;
        padding-top: 10px;
    }

    .livros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .livro-card {
        width: 100%;
    }

    .livro-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .livro-card .titulo {
        font-size: 1rem;
        margin-top: 0.5rem;
        text-align: center;
    }

    .livro-card .descricao {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        text-align: center;
    }

    /* Escritor Section */
    .escritor-content {
        background-image: url('../img/responsivo/escritor-responsivo.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: grid;
        grid-template-columns: 1fr;
        align-items: flex-start;
        position: relative;
        padding: 1rem;
        min-height: 100vh;
        padding-right: 0;
    }

    .escritor-image {
        position: absolute;
        top: 1.4rem;
        left: -40px;
        width: 650px;
        height: auto;
        z-index: 2;
        transform: none;
        pointer-events: none;
    }

    .escritor-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 400px;
    }

    .escritor-text {
        
        padding: 1rem;
        width: 100%;
        z-index: 1;
        margin: 0;
        position: relative;
    }

    .escritor-text .titulo {
        padding-top: 9rem;
        font-size: 2rem;
        text-align: right;
        margin: 0;
    }

    .escritor-text .descricao {
        font-size: 1rem;
        text-align: right;
        margin-top: 4rem;
        position: relative;
        margin-right: 10px;
        font-size: 1.2rem;

    }

    /* Testimonials Section */
    .row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .sandeco-embaixador {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: left;
        color: var(--white);
        position: relative;
        overflow: hidden;
        background-color: #000;
    }

    /* Embaixador Section */
    .embaixador-content {
        background-image: url('../img/responsivo/embaixador-responsivo.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
        overflow: hidden;
    }

    .embaixador-image {
        position: absolute;
        bottom: 0;
        width: 85%;
        height: auto;
        z-index: 1;
    }

    .embaixador-image img {
        width: 110%;
        height: auto;
        object-fit: contain;
        object-position: left bottom;
        transform: scale(1);
    }

    .embaixador-text {
        text-align: left;
        padding: 3rem 1rem;
        position: relative;
        z-index: 2;

        max-width: 100%;
        margin-bottom: 40%;
    }

    .embaixador-text .titulo {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        background-color: var(--bg-color);
        display: inline-block;
        padding: 0.5rem 1rem;
    }

    .embaixador-content .titulo{
        background-color: #1a3b5d;
    }

    .embaixador-content .titulo-destaque {
        font-size: 2.5rem;
        padding: 0;
        display: inline-block;
    }

    .embaixador-text .descricao {
        font-size: 1.2rem;
        line-height: 1.6;
        color: var(--white);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Contato Section */
    .sandeco-contato {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: left;
        color: var(--white);
        position: relative;
        overflow: hidden;
        background-color: #000;
    }

    .contato-content {
        background-image: url('../img/responsivo/contato-responsivo.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
        overflow: hidden;
    }

    .contato-image {
        position: absolute;
        bottom: 0;
        left: 0;
        margin-left: 100px;
        width: 85%;
        height: auto;
        z-index: 1;
    }

    .contato-image img {
        width: 110%;
        height: auto;
        object-fit: contain;
        object-position: left bottom;
    }

    .contato-text {
        text-align: left;
        padding: 3rem 1rem;
        position: relative;
        z-index: 2;
        max-width: 100%;
        margin-bottom: 40%;
    }

    .contato-text .titulo {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        background-color: #1a3b5d;
        display: inline-block;
        padding: 0.5rem 1rem;
    }

    .contato-text .titulo-destaque {
        font-size: 2.5rem;
        padding: 0;
        display: inline-block;
    }

    .contato-text .descricao {
        font-size: 1.2rem;
        line-height: 1.6;
        color: var(--white);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        margin-bottom: 2rem;
    }

    /* Formulário de Contato - Mobile Adjustments */
    .form-contato {
        padding: 3rem 1rem;
    }

    .form-contato-container {
        max-width: 100%;
        padding: 2rem;
    }

    .form-contato h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .radio-group {
        gap: 2rem;
    }

    .radio-option input[type="radio"] {
        width: 1.25rem;
        height: 1.25rem;
    }

    .form-submit {
        padding: 1rem;
        font-size: 1rem;
        margin-top: 2rem;
    }

    .form-group input::placeholder {
        color: #64748b;
    }

    /* Estilo para campos com erro */
    .form-group.error input,
    .form-group.error select {
        border-color: #ef4444;
    }

    .form-group.error .error-message {
        color: #ef4444;
        font-size: 0.75rem;
        margin-top: 0.375rem;
    }

    /* Animação de loading no botão */
    .form-submit.loading {
        color: transparent;
    }

    .form-submit.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 1.25rem;
        height: 1.25rem;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to { transform: translate(-50%, -50%) rotate(360deg); }
    }
} 