/* ============================================================
   modern.css - Modernização sóbria e elegante
   Carregado depois de custom.css para sobrescrever estilos
   ============================================================ */

/* ===== Tipografia ============================================ */
body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: #2c3e50;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-weight: 700;
    color: #1a2b3c;
    letter-spacing: -0.01em;
}

a {
    color: #2b7de9;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #1557b0;
    text-decoration: none;
}

/* ===== Navbar ================================================ */
.navbar-default {
    background-color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.navbar-fixed-top.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar-brand img {
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-default .navbar-nav > li > a {
    color: #2c3e50;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.active > a:hover,
.navbar-default .navbar-nav > li.active > a:focus {
    color: #2b7de9;
    background-color: transparent;
}

/* ===== Section headers ======================================= */
.page-header.intro-section {
    border-bottom: none;
    margin-top: 60px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.page-header.intro-section h1,
.page-header.intro-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #1a2b3c;
}

.page-header.intro-section::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2b7de9;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===== Wells ================================================= */
.well {
    background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.well::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2b7de9;
}

.well h3 {
    margin-top: 0;
    color: #1a2b3c;
    font-size: 22px;
    margin-bottom: 16px;
}

.well p {
    color: #4a5a6a;
}

/* ===== Panels ================================================ */
.panel {
    border-radius: 12px;
    border: 1px solid #e5eaf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    background-color: #ffffff;
}

.panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.panel-heading {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5eaf0;
    padding: 18px 20px;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b3c;
    margin: 0;
}

.panel-body {
    padding: 20px;
    color: #4a5a6a;
}

/* Cards de serviço (envolvidos em <a>) */
a > .panel {
    text-decoration: none;
    position: relative;
}

a > .panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2b7de9;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

a:hover > .panel::before {
    opacity: 1;
}

a > .panel .panel-title {
    color: #1a2b3c;
    transition: color 0.2s ease;
}

a:hover > .panel .panel-title {
    color: #2b7de9;
}

/* ===== Accordion (Perguntas e Respostas) ===================== */
.panel-group .panel {
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e5eaf0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel-group .panel:hover {
    transform: none;
    border-color: #2b7de9;
    box-shadow: 0 4px 12px rgba(43, 125, 233, 0.08);
}

.panel-group .panel-heading {
    padding: 18px 24px;
    background-color: #ffffff !important;
}

.panel-group .panel-heading a {
    display: block;
    color: #1a2b3c;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    padding-right: 30px;
    transition: color 0.2s ease;
}

.panel-group .panel-heading a:hover {
    color: #2b7de9;
}

.panel-group .panel-heading a::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #2b7de9;
    font-weight: 400;
    line-height: 1;
}

.panel-group .panel-heading a:not(.collapsed)::after {
    content: '\2212';
}

.panel-collapse {
    padding: 15px 24px 20px;
    color: #4a5a6a;
    font-size: 14px;
    line-height: 1.7;
    border-top: 1px solid #e5eaf0;
}

/* ===== Botões ================================================ */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    border: none;
}

/* FIX: o bootstrap-theme.min.css aplica um gradiente em .btn-default.
   Sem background-image:none o gradiente branco/cinza cobre o azul. */
.btn-default {
    background-color: #2b7de9 !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(43, 125, 233, 0.25);
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active {
    background-color: #1557b0 !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(43, 125, 233, 0.35);
    transform: translateY(-1px);
}

.btn-default:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.3);
}

/* ===== Inputs ================================================ */
.form-control {
    border-radius: 8px;
    border: 1px solid #d8e0e8;
    padding: 10px 14px;
    height: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
    background-color: #ffffff;
    color: #2c3e50;
}

.form-control:focus {
    border-color: #2b7de9;
    box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.12);
    outline: none;
}

/* ===== Jumbotron (Contato) =================================== */
.jumbotron {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2b7de9 0%, #1557b0 100%);
}

.jumbotron .form-group {
    margin-bottom: 20px;
}

.jumbotron label {
    font-weight: 600;
    color: #1a2b3c;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.jumbotron .form-control {
    font-size: 15px;
}

/* ===== Carousel ============================================== */
.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1) 70%, transparent);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 20px 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.carousel-caption h1 {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.carousel-caption .lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    margin-bottom: 0;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #ffffff;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-indicators .active {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #ffffff;
    transform: scale(1.2);
}

.carousel-control {
    background-image: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.carousel-control:hover,
.carousel-control:focus {
    opacity: 1;
}

/* ===== Thumbnails ============================================ */
.img-thumbnail {
    border-radius: 8px;
    border-color: #e5eaf0;
    padding: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ===== Depoimentos =========================================== */
.depoimentos .col-md-2 {
    padding: 12px;
    font-size: 12px;
    color: #5a6a7a;
    line-height: 1.5;
}

/* Fotos maiores (antes 80px) */
.depoimentos img.img-circle {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    padding: 3px;
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.depoimentos strong {
    display: block;
    margin: 10px 0 8px;
    color: #1a2b3c;
    font-size: 13px;
}

.depoimentos strong i {
    font-style: normal;
}

/* ===== Dicas (cards) ========================================= */
#Dicas ~ .row {
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    padding: 15px 10px;
    margin: 0 0 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#Dicas ~ .row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

#Dicas ~ .row .col-md-3 img {
    transition: transform 0.3s ease;
}

#Dicas ~ .row:hover .col-md-3 img {
    transform: scale(1.03);
}

#Dicas ~ .row .col-md-9 > a {
    display: inline-block;
    background-color: #2b7de9;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#Dicas ~ .row .col-md-9 > a:hover {
    background-color: #1557b0;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Esconde os <br /> entre os cards de Dicas */
#Dicas ~ .row + br {
    display: none;
}

/* ===== Serviços (lista) ====================================== */
#Servicos + .well > a > p {
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid #e5eaf0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

#Servicos + .well > a:last-child > p {
    border-bottom: none;
}

#Servicos + .well > a:hover > p {
    color: #2b7de9;
    padding-left: 8px;
}

.well > a > p > .glyphicon-ok {
    color: #2b7de9;
    margin-right: 8px;
}

/* ===== CTA "Entre em contato" ================================ */
.well > a[href="#Contato"] {
    display: inline-block;
    text-decoration: none;
    margin-top: 15px;
}

.well > a[href="#Contato"] > p {
    display: inline-block;
    background-color: #2b7de9;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.well > a[href="#Contato"]:hover > p {
    background-color: #1557b0;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ===== Footer ================================================ */
form > .panel.panel-default {
    background-color: #1a2b3c;
    background-image: none;
    border: none;
    border-radius: 0;
    margin: 40px 0 0 0;
    padding: 30px 0;
    box-shadow: none;
}

form > .panel.panel-default:hover {
    transform: none;
    box-shadow: none;
}

form > .panel.panel-default .panel-body {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.05em;
    padding: 0;
}

form > .panel.panel-default .panel-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Scroll reveal ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Ajustes mobile ======================================== */
@media (max-width: 767px) {
    .page-header.intro-section {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-header.intro-section h1,
    .page-header.intro-section h2 {
        font-size: 24px;
    }

    .well {
        padding: 20px;
        border-radius: 10px;
    }

    .well h3 {
        font-size: 18px;
    }

    .jumbotron {
        padding: 24px;
        border-radius: 12px;
    }

    /* Banner do carrossel: altura fixa + object-fit para não ficar "achatado" no celular */
    #myCarousel .carousel-inner > .item {
        height: 250px;
        overflow: hidden;
    }

    #myCarousel .carousel-inner > .item > img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .carousel-caption {
        padding: 15px 15px 10px;
    }

    .carousel-caption h1 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .carousel-caption .lead {
        font-size: 12px;
    }

    .depoimentos .col-md-2 {
        padding: 8px;
        font-size: 11px;
    }

    /* Fotos menores no mobile (mas ainda maiores que antes: 80px) */
    .depoimentos img.img-circle {
        width: 80px;
        height: 80px;
    }

    .depoimentos strong {
        font-size: 11px;
    }

    #Dicas ~ .row {
        padding: 15px 10px;
    }

    #Dicas ~ .row .col-md-9 > a {
        font-size: 13px;
        padding: 7px 16px;
    }
}

/* Em dispositivos touch, desabilita o "lift" no hover */
@media (hover: none) {
    .panel:hover,
    #Dicas ~ .row:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }
}
