/* =============================================
   GRUPO FOCAR - Estilos Globais
   ============================================= */

/* Gotham Font Family */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham-book-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham-black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham-black-italic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham-ultra-italic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Condensed';
    src: url('../fonts/gotham-condensed-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Condensed';
    src: url('../fonts/gotham-condensed-book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Condensed';
    src: url('../fonts/gotham-condensed-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Condensed';
    src: url('../fonts/gotham-condensed-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #1B1B6B;
    --color-accent: #5B5BC0;
    --color-dark: #1C1C1C;
    --color-gray-bg: #EBEBEB;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #555555;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gotham', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */

.header {
    background-color: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    height: 140px;
}

.navbar-container {
    max-width: 1315px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo img {
    height: 72px;
    width: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 36px;
}

.navbar-nav li {
    position: relative;
}

.navbar-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-nav a:hover {
    opacity: 0.8;
}

.navbar-nav .nav-icon {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-icon svg {
    width: 20px;
    height: 20px;
}

/* Dropdown */
.navbar-nav .has-dropdown > a::after {
    content: '▾';
    font-size: 20px;
    margin-left: 2px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #09046B;
    border-radius: 0px;
    box-shadow: none;
    min-width: 280px;
    padding: 0;
    list-style: none;
    border-top: 3px solid #5B5BC0;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: #FFFFFF;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Mobile toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../imagens/fundohero.png');
    background-size: cover;
    background-position: center 60%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(14, 14, 90, 0.0),
        rgba(27, 27, 107, 0.0),
        rgba(30, 60, 120, 0.0)
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 350;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 680px;
}

/* =============================================
   QUEM SOMOS SECTION
   ============================================= */

.quem-somos {
    background: var(--color-white);
    padding: 35px 0;
}

.quem-somos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.quem-somos-img {
    width: 80%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    margin: 0 auto;
}

.quem-somos-content .section-title {
    font-size: 60px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.quem-somos-content .section-title span {
    color: var(--color-accent);
}

.quem-somos-content p {
    font-size: 20px;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* =============================================
   ATUAMOS SECTION
   ============================================= */

.atuamos {
    background: var(--color-gray-bg);
    padding: 10px 0 40px;
}

.atuamos .section-title {
    text-align: center;
    font-size: 58px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.atuamos .section-title span {
    color: var(--color-accent);
}

.atuamos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.atuamos-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.48);
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    padding-top: 30px;
}


.atuamos-card-img {
    width: calc(100% - 62px);
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.atuamos-card-body {
    padding: 20px 24px 1px;
}

.atuamos-card-title {
    font-size: 25px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.4;
}

.atuamos-card-title span {
    color: var(--color-accent);
}

/* =============================================
   MISSÃO E VISÃO SECTION
   ============================================= */

.missao-visao {
    background: var(--color-white);
    padding: 26px 0;
}

.missao-visao .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.missao-visao .section-title {
    font-size: 60px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.missao-visao .section-title span {
    color: var(--color-accent);
}

.missao-visao .section-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mv-card {
    background: var(--color-white);
    border: 1px solid #e8e8f0;
    border-radius: var(--radius);
    padding: 15px 15px;
    text-align: center;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.48);
    transition: box-shadow 0.3s;
}


.mv-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.mv-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.mv-card h3 {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 3px;
    text-align: center;
}

.mv-card p {
    font-size: 25px;
    color: var(--color-text-light);
    line-height: 1.75;
    text-align: left;
}

/* =============================================
   VALORES SECTION
   ============================================= */

.valores {
    background: var(--color-white);
    padding: 0 0 40px;
}

.valores .section-title {
    text-align: center;
    font-size: 60px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.valores .section-title span {
    color: var(--color-accent);
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.valor-card {
    background: var(--color-white);
    border: 1px solid #e8e8f0;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.3s;
}



.valor-card.full-width {
    grid-column: 1 / -1;
}

.valor-icon {
    margin-bottom: 16px;
}

.valor-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.valor-card h3 {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.valor-card p {
    font-size: 21px;
    color: var(--color-text-light);
    line-height: 1.75;
}

/* =============================================
   CONTATO SECTION
   ============================================= */

.contato {
    background: var(--color-white);
    padding: 80px 0;
}

.contato .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.contato .section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.contato .section-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contato-map iframe {
    width: 100%;
    height: 320px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #DADAE8;
    border-radius: 8px;
    font-family: 'Gotham', sans-serif;
    font-size: 14px;
    color: var(--color-dark);
    background: #FAFAFA;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input::placeholder {
    color: #AAAAAA;
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(91, 91, 192, 0.12);
    background: var(--color-white);
}

/* =============================================
   CAPTCHA WIDGET
   ============================================= */

.captcha-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #DADAE8;
    border-radius: 8px;
    background: #FAFAFA;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.captcha-widget:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(91, 91, 192, 0.10);
}

/* Caixa do checkbox */
.captcha-box {
    width: 24px;
    height: 24px;
    border: 2px solid #BABAC8;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}

/* Spinner */
.captcha-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    opacity: 0;
    animation: captcha-spin 0.8s linear infinite;
}

/* Check SVG */
.captcha-check {
    width: 12px;
    height: 10px;
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}

.captcha-check polyline {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    transition: stroke-dashoffset 0.3s ease 0.1s;
}

/* Texto */
.captcha-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    flex: 1;
}

/* ---- Estados ---- */

/* Verificando (spinner girando) */
.captcha-widget.verifying .captcha-box {
    border-color: var(--color-accent);
}

.captcha-widget.verifying .captcha-spinner {
    opacity: 1;
}

/* Verificado (checkmark verde) */
.captcha-widget.verified .captcha-box {
    background: #4CAF50;
    border-color: #4CAF50;
}

.captcha-widget.verified .captcha-check {
    opacity: 1;
    transform: scale(1);
}

.captcha-widget.verified .captcha-check polyline {
    stroke-dashoffset: 0;
}

.captcha-widget.verified .captcha-spinner {
    opacity: 0;
    animation: none;
}

/* Shake — tentativa de envio sem verificar */
@keyframes captcha-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.captcha-shake {
    animation: captcha-shake 0.5s ease;
    border-color: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15) !important;
}

/* Spinner keyframe */
@keyframes captcha-spin {
    to { transform: rotate(360deg); }
}

.btn-enviar {
    width: 100%;
    padding: 16px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    font-family: 'Gotham', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-enviar:hover {
    background-color: var(--color-accent);
    transform: translateY(-1px);
}

.contato-mensagem {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
}

.contato-sucesso {
    background-color: #e6f4ea;
    color: #2d6a4f;
    border: 1px solid #b7dfca;
}

.contato-erro {
    background-color: #fdecea;
    color: #a93226;
    border: 1px solid #f5c6c2;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .navbar-nav {
        gap: 20px;
    }

    .hero-title {
        font-size: 38px;
    }

    .quem-somos-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: 20px 24px;
        gap: 18px;
        align-items: flex-start;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .navbar-nav.open {
        display: flex;
    }

    .hero-content {
        padding: 60px 24px;
    }

    .hero-title {
        font-size: 30px;
    }

    .quem-somos-grid,
    .mv-grid,
    .contato-grid {
        grid-template-columns: 1fr;
    }

    .atuamos-grid {
        grid-template-columns: 1fr;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }

    .valor-card.full-width {
        grid-column: auto;
    }

    .quem-somos-content .section-title,
    .atuamos .section-title,
    .missao-visao .section-title,
    .valores .section-title,
    .contato .section-title {
        font-size: 30px;
    }
}
