/********** Template CSS **********/

/*** Spinner ***/





#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed !important;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* ============================================================================
   PWA INSTALL BUTTON - Estilos Melhorados
   ============================================================================ */

.pwa-install-btn {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    z-index: 1050 !important;
    
    /* Botão base */
    display: none; /* Oculto por padrão */
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    padding: 12px 16px;
    border: none;
    border-radius: 24px;
    min-width: 130px;
    max-width: 160px;
    
    /* Tipografia */
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    
    /* Design */
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3), 
                0 0 20px rgba(0, 123, 255, 0.15);
    
    /* Animações */
    opacity: 0.9;
    animation: pwaButtonPulse 2.5s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Transform */
    transform: translateZ(0);
    will-change: transform, box-shadow, opacity;
}

/* Estados do botão */
.pwa-install-btn:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.02) translateZ(0);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5),
                0 0 30px rgba(0, 123, 255, 0.3);
}

.pwa-install-btn:active {
    transform: translateY(-1px) scale(0.98) translateZ(0);
}

.pwa-install-btn:focus {
    outline: 2px solid rgba(0, 123, 255, 0.8);
    outline-offset: 2px;
}

.pwa-install-btn.disabled,
.pwa-install-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Visibilidade */
.pwa-install-btn.pwa-visible {
    display: flex !important;
}

.pwa-install-btn.pwa-hidden {
    display: none !important;
}

/* Ícone do app */
.pwa-install-btn .app-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

/* Texto do botão */
.pwa-install-btn .app-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================================================
   ANIMAÇÕES PWA
   ============================================================================ */

@keyframes pwaButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3),
                    0 0 20px rgba(0, 123, 255, 0.15);
    }
    50% {
        box-shadow: 0 4px 18px rgba(0, 123, 255, 0.4),
                    0 0 25px rgba(0, 123, 255, 0.25);
    }
}

/* ============================================================================
   ESTADO: CARREGANDO/BAIXANDO
   ============================================================================ */

.pwa-install-btn.downloading {
    pointer-events: none;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    animation: pwaDownloadingPulse 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pwa-install-btn.downloading .app-icon {
    animation: pwaIconSpin 1s linear infinite;
}

.pwa-install-btn.downloading .app-text {
    display: none;
}

.pwa-install-btn.downloading::after {
    content: "Baixando...";
    font-size: 13px;
    color: white;
    font-weight: 600;
    animation: pwaTextFadeIn 0.3s ease-in;
}

@keyframes pwaDownloadingPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3),
                    0 0 20px rgba(40, 167, 69, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5),
                    0 0 30px rgba(40, 167, 69, 0.3);
        transform: scale(1.03);
    }
}

@keyframes pwaIconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   BARRA DE PROGRESSO
   ============================================================================ */

.download-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 24px 24px;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ============================================================================
   ESTADO: COMPLETO
   ============================================================================ */

.pwa-install-btn.download-complete {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    animation: pwaCompleteBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pwa-install-btn.download-complete .app-icon {
    display: none;
}

.pwa-install-btn.download-complete .app-text {
    display: none;
}

.pwa-install-btn.download-complete::after {
    content: "✓ Instalado!";
    font-size: 13px;
    color: white;
    font-weight: 600;
    animation: pwaTextFadeIn 0.3s ease-in;
}

@keyframes pwaCompleteBounce {
    0% {
        transform: scale(1) translateZ(0);
    }
    50% {
        transform: scale(1.15) translateZ(0);
    }
    100% {
        transform: scale(1) translateZ(0);
    }
}

@keyframes pwaTextFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================================================
   RESPONSIVIDADE - MOBILE
   ============================================================================ */

@media (max-width: 768px) {
    .pwa-install-btn {
        top: 75px !important;
        right: 15px !important;
        padding: 10px 14px;
        min-width: 115px;
        max-width: 140px;
        font-size: 13px;
    }

    .pwa-install-btn .app-icon {
        width: 22px;
        height: 22px;
    }

    .pwa-install-btn .app-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pwa-install-btn {
        top: 70px !important;
        right: 12px !important;
        padding: 8px 12px;
        min-width: 100px;
        max-width: 125px;
        font-size: 12px;
        gap: 6px;
    }

    .pwa-install-btn .app-icon {
        width: 20px;
        height: 20px;
    }

    .pwa-install-btn .app-text {
        font-size: 11px;
    }

    .pwa-install-btn.downloading::after,
    .pwa-install-btn.download-complete::after {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .pwa-install-btn {
        top: 65px !important;
        right: 10px !important;
        padding: 7px 10px;
        min-width: 90px;
        max-width: 110px;
        font-size: 11px;
        gap: 5px;
    }

    .pwa-install-btn .app-icon {
        width: 18px;
        height: 18px;
    }

    .pwa-install-btn .app-text {
        font-size: 10px;
    }

    .pwa-install-btn.downloading::after,
    .pwa-install-btn.download-complete::after {
        font-size: 10px;
    }
}

/*** Fonts ***/
.font-work-sans {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-playfair-display {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


/*** Button ***/
.btn {
    position: relative;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-dark,
.btn-primary {
    margin: 10px;
}

.btn-primary::before,
.btn-primary::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-primary::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-primary);
    border-right: 2px solid var(--bs-primary);
}

.btn-primary::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
}

.btn-dark::before,
.btn-dark::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-dark::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-dark);
    border-right: 2px solid var(--bs-dark);
}

.btn-dark::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-dark);
    border-bottom: 2px solid var(--bs-dark);
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin: 0 12px;
    padding: 0;
    outline: none;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }

    .sticky-top {
        top: 0 !important;
    }
}

@media (max-width: 768px) {
    .navbar-toggler {
        margin-right: 15px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn-primary {
    border-width: 2px;
    background: var(--bs-light);
}

.navbar .btn-primary:hover {
    background: var(--bs-primary);
}


/*** Hero Header ***/
.hero-header {
    background: url(../img/hero-bg.jpg) top left no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header .container {
        max-width: 100% !important;
    }

    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.header-carousel .owl-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next{
    position: relative;
    margin-left: 2px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-dark);
    background: var(--bs-primary);
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
}

.page-header {
    background: url(../img/page-header.jpg) center center no-repeat;
    background-size: contain;
}


/*** Service ***/
.service {
    background: linear-gradient(135deg, #fefefe 0%, #fff3cd 50%, #ffeaa7 100%);
    padding: 100px 0;
    position: relative;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffd700" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.service .service-item {
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    border: 2px solid #fff3cd;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(255, 243, 205, 0.3);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    overflow: hidden;
    padding: 40px 30px;
    position: relative;
}

.service .service-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fff3cd, #ffeaa7, #fff3cd);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service .service-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 243, 205, 0.4);
    border-color: #ffeaa7;
}

.service .service-item:hover::before {
    opacity: 1;
}

.service .service-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 4px solid #fff3cd;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(255, 243, 205, 0.2);
}

.service .service-item:hover img {
    border-color: #ffeaa7;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(255, 243, 205, 0.4);
}

.service .service-item h3 {
    font-family: "Dancing Script", cursive;
    font-size: 1.8rem;
    color: var(--bs-primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 193, 7, 0.1);
}

.service .service-item p {
    color: #856404;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
    font-family: "Playfair Display", serif;
}

.service .service-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.service .service-item ul li {
    background: linear-gradient(90deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #533f00;
    border-left: none;
    line-height: 1.4;
    display: inline-block;
    width: calc(100% - 24px);
    box-sizing: border-box;
    font-family: "Playfair Display", serif;
    font-style: italic;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 243, 205, 0.1);
}

.service .service-item:hover ul li {
    background: linear-gradient(90deg, #ffeaa7 0%, #fff3cd 100%);
    transform: translateX(5px);
}

.price {
    color: var(--bs-primary);
    font-weight: bold;
    font-style: normal;
    font-size: 20px;
    text-shadow: 1px 1px 1px rgba(255, 193, 7, 0.1);
}

.service .service-item .btn-primary {
    border-width: 2px;
    background: linear-gradient(45deg, #fff3cd 0%, #ffeaa7 100%);
    color: #533f00;
    margin-top: 20px;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 243, 205, 0.2);
}

.service .service-item .btn-primary:hover {
    background: linear-gradient(45deg, #ffeaa7 0%, #fff3cd 100%);
    color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 243, 205, 0.4);
}

@media (max-width: 768px) {
    .service .service-item {
        border: none !important;
        box-shadow: 0 0 45px rgba(0, 0, 0, .05);
        margin-bottom: 30px;
    }

    .service .service-item img {
        width: 60px;
        height: 60px;
    }

    .service .service-item h3 {
        font-size: 1.3rem;
    }

    .service .service-item ul li {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .service .service-item.border-lg-end {
        border-right: 1px solid #dee2e6;
    }

    .service .service-item.border-lg-end-0 {
        border-right: none !important;
    }

    .service .service-item.border-lg-bottom-0 {
        border-bottom: none !important;
    }
}


/*** Pricing ***/
.price .price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .05);
}


/*** Blog ***/
.blog .btn-dark {
    border-width: 2px;
    background: var(--bs-primary);
    color: var(--bs-dark);
}

.blog .btn-dark:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}


/*** Gallery ***/
.gallery .gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery .gallery-item img {
    transition: .5s;
}

.gallery .gallery-item:hover img {
    transform: scale(1.2);
}

.gallery .gallery-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .7);
    transition: .5s;
    z-index: 1;
}

.gallery .gallery-item:hover .gallery-icon {
    width: 100%;
    height: 100%;
}

.gallery .gallery-icon .btn {
    opacity: 0;
    transition: .5s;
}

.gallery .gallery-item:hover .gallery-icon .btn {
    opacity: 1;
    transition-delay: .5s;
}


/*** Team ***/
.team {
    position: relative;
}

.team::before {
    position: absolute;
    content: "";
    width: 200%;
    height: 200px;
    top: 50%;
    left: -50%;
    transform: translateY(-50%);
    margin-top: 1rem;
    background: var(--bs-primary);
}

.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    text-align: center;
    background: rgba(255, 255, 255, .5);
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-overlay {
    background: rgba(255, 255, 255, .9);
}

.team-overlay p {
    letter-spacing: 1px;
}

.team-overlay .btn-dark {
    border-width: 2px;
    color: var(--bs-dark);
    background: transparent;
}

.team-overlay .btn-dark:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item {
    position: relative;
}

.testimonial-carousel .owl-item::before {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .1;
}

.testimonial-carousel .owl-item img {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.testimonial-carousel .owl-item,
.testimonial-carousel .owl-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item span {
    letter-spacing: 2px;
}

.testimonial-carousel .owl-item.center .bg-light {
    background: var(--bs-primary) !important;
}

.testimonial-carousel .owl-item.center .bg-light * {
    color: var(--bs-dark) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Footer ***/
@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--bs-secondary);
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;/********** Template CSS **********/

/*** Spinner ***/





#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed !important;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* ============================================================================
   PWA INSTALL BUTTON - Estilos Melhorados
   ============================================================================ */

.pwa-install-btn {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    z-index: 1050 !important;
    
    /* Botão base */
    display: none; /* Oculto por padrão */
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    padding: 12px 16px;
    border: none;
    border-radius: 24px;
    min-width: 130px;
    max-width: 160px;
    
    /* Tipografia */
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    
    /* Design */
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3), 
                0 0 20px rgba(0, 123, 255, 0.15);
    
    /* Animações */
    opacity: 0.9;
    animation: pwaButtonPulse 2.5s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Transform */
    transform: translateZ(0);
    will-change: transform, box-shadow, opacity;
}

/* Estados do botão */
.pwa-install-btn:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.02) translateZ(0);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5),
                0 0 30px rgba(0, 123, 255, 0.3);
}

.pwa-install-btn:active {
    transform: translateY(-1px) scale(0.98) translateZ(0);
}

.pwa-install-btn:focus {
    outline: 2px solid rgba(0, 123, 255, 0.8);
    outline-offset: 2px;
}

.pwa-install-btn.disabled,
.pwa-install-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Visibilidade */
.pwa-install-btn.pwa-visible {
    display: flex !important;
}

.pwa-install-btn.pwa-hidden {
    display: none !important;
}

/* Ícone do app */
.pwa-install-btn .app-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

/* Texto do botão */
.pwa-install-btn .app-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================================================
   ANIMAÇÕES PWA
   ============================================================================ */

@keyframes pwaButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3),
                    0 0 20px rgba(0, 123, 255, 0.15);
    }
    50% {
        box-shadow: 0 4px 18px rgba(0, 123, 255, 0.4),
                    0 0 25px rgba(0, 123, 255, 0.25);
    }
}

/* ============================================================================
   ESTADO: CARREGANDO/BAIXANDO
   ============================================================================ */

.pwa-install-btn.downloading {
    pointer-events: none;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    animation: pwaDownloadingPulse 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pwa-install-btn.downloading .app-icon {
    animation: pwaIconSpin 1s linear infinite;
}

.pwa-install-btn.downloading .app-text {
    display: none;
}

.pwa-install-btn.downloading::after {
    content: "Baixando...";
    font-size: 13px;
    color: white;
    font-weight: 600;
    animation: pwaTextFadeIn 0.3s ease-in;
}

@keyframes pwaDownloadingPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3),
                    0 0 20px rgba(40, 167, 69, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5),
                    0 0 30px rgba(40, 167, 69, 0.3);
        transform: scale(1.03);
    }
}

@keyframes pwaIconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   BARRA DE PROGRESSO
   ============================================================================ */

.download-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 24px 24px;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ============================================================================
   ESTADO: COMPLETO
   ============================================================================ */

.pwa-install-btn.download-complete {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    animation: pwaCompleteBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pwa-install-btn.download-complete .app-icon {
    display: none;
}

.pwa-install-btn.download-complete .app-text {
    display: none;
}

.pwa-install-btn.download-complete::after {
    content: "✓ Instalado!";
    font-size: 13px;
    color: white;
    font-weight: 600;
    animation: pwaTextFadeIn 0.3s ease-in;
}

@keyframes pwaCompleteBounce {
    0% {
        transform: scale(1) translateZ(0);
    }
    50% {
        transform: scale(1.15) translateZ(0);
    }
    100% {
        transform: scale(1) translateZ(0);
    }
}

@keyframes pwaTextFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================================================
   RESPONSIVIDADE - MOBILE
   ============================================================================ */

@media (max-width: 768px) {
    .pwa-install-btn {
        top: 75px !important;
        right: 15px !important;
        padding: 10px 14px;
        min-width: 115px;
        max-width: 140px;
        font-size: 13px;
    }

    .pwa-install-btn .app-icon {
        width: 22px;
        height: 22px;
    }

    .pwa-install-btn .app-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pwa-install-btn {
        top: 70px !important;
        right: 12px !important;
        padding: 8px 12px;
        min-width: 100px;
        max-width: 125px;
        font-size: 12px;
        gap: 6px;
    }

    .pwa-install-btn .app-icon {
        width: 20px;
        height: 20px;
    }

    .pwa-install-btn .app-text {
        font-size: 11px;
    }

    .pwa-install-btn.downloading::after,
    .pwa-install-btn.download-complete::after {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .pwa-install-btn {
        top: 65px !important;
        right: 10px !important;
        padding: 7px 10px;
        min-width: 90px;
        max-width: 110px;
        font-size: 11px;
        gap: 5px;
    }

    .pwa-install-btn .app-icon {
        width: 18px;
        height: 18px;
    }

    .pwa-install-btn .app-text {
        font-size: 10px;
    }

    .pwa-install-btn.downloading::after,
    .pwa-install-btn.download-complete::after {
        font-size: 10px;
    }
}

/*** Fonts ***/
.font-work-sans {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-playfair-display {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


/*** Button ***/
.btn {
    position: relative;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-dark,
.btn-primary {
    margin: 10px;
}

.btn-primary::before,
.btn-primary::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-primary::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-primary);
    border-right: 2px solid var(--bs-primary);
}

.btn-primary::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
}

.btn-dark::before,
.btn-dark::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-dark::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-dark);
    border-right: 2px solid var(--bs-dark);
}

.btn-dark::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-dark);
    border-bottom: 2px solid var(--bs-dark);
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .sticky-top {
        position: static !important;
        top: auto !important;
    }
}

.navbar .navbar-nav .nav-link {
    margin: 0 12px;
    padding: 0;
    outline: none;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }

    .sticky-top {
        position: static !important;
        top: auto !important;
    }

    .navbar-collapse {
        background: white !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        display: none !important;
    }

    .navbar-collapse.show {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .navbar-toggler {
        margin-right: 15px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn-primary {
    border-width: 2px;
    background: var(--bs-light);
}

.navbar .btn-primary:hover {
    background: var(--bs-primary);
}


/*** Hero Header ***/
.hero-header {
    background: url(../img/hero-bg.jpg) top left no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header .container {
        max-width: 100% !important;
    }

    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.header-carousel .owl-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next{
    position: relative;
    margin-left: 2px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-dark);
    background: var(--bs-primary);
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
}

.page-header {
    background: url(../img/page-header.jpg) center center no-repeat;
    background-size: contain;
}


/*** Service ***/
.service {
    background: linear-gradient(135deg, #fefefe 0%, #fff3cd 50%, #ffeaa7 100%);
    padding: 100px 0;
    position: relative;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffd700" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.service .service-item {
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    border: 2px solid #fff3cd;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(255, 243, 205, 0.3);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    overflow: hidden;
    padding: 40px 30px;
    position: relative;
}

.service .service-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fff3cd, #ffeaa7, #fff3cd);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service .service-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 243, 205, 0.4);
    border-color: #ffeaa7;
}

.service .service-item:hover::before {
    opacity: 1;
}

.service .service-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 4px solid #fff3cd;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(255, 243, 205, 0.2);
}

.service .service-item:hover img {
    border-color: #ffeaa7;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(255, 243, 205, 0.4);
}

.service .service-item h3 {
    font-family: "Dancing Script", cursive;
    font-size: 1.8rem;
    color: var(--bs-primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 193, 7, 0.1);
}

.service .service-item p {
    color: #856404;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
    font-family: "Playfair Display", serif;
}

.service .service-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.service .service-item ul li {
    background: linear-gradient(90deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #533f00;
    border-left: none;
    line-height: 1.4;
    display: inline-block;
    width: calc(100% - 24px);
    box-sizing: border-box;
    font-family: "Playfair Display", serif;
    font-style: italic;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 243, 205, 0.1);
}

.service .service-item:hover ul li {
    background: linear-gradient(90deg, #ffeaa7 0%, #fff3cd 100%);
    transform: translateX(5px);
}

.price {
    color: var(--bs-primary);
    font-weight: bold;
    font-style: normal;
    font-size: 20px;
    text-shadow: 1px 1px 1px rgba(255, 193, 7, 0.1);
}

.service .service-item .btn-primary {
    border-width: 2px;
    background: linear-gradient(45deg, #fff3cd 0%, #ffeaa7 100%);
    color: #533f00;
    margin-top: 20px;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 243, 205, 0.2);
}

.service .service-item .btn-primary:hover {
    background: linear-gradient(45deg, #ffeaa7 0%, #fff3cd 100%);
    color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 243, 205, 0.4);
}

@media (max-width: 768px) {
    .service .service-item {
        border: none !important;
        box-shadow: 0 0 45px rgba(0, 0, 0, .05);
        margin-bottom: 30px;
    }

    .service .service-item img {
        width: 60px;
        height: 60px;
    }

    .service .service-item h3 {
        font-size: 1.3rem;
    }

    .service .service-item ul li {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .service .service-item.border-lg-end {
        border-right: 1px solid #dee2e6;
    }

    .service .service-item.border-lg-end-0 {
        border-right: none !important;
    }

    .service .service-item.border-lg-bottom-0 {
        border-bottom: none !important;
    }
}


/*** Pricing ***/
.price .price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .05);
}


/*** Blog ***/
.blog .btn-dark {
    border-width: 2px;
    background: var(--bs-primary);
    color: var(--bs-dark);
}

.blog .btn-dark:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}


/*** Gallery ***/
.gallery .gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery .gallery-item img {
    transition: .5s;
}

.gallery .gallery-item:hover img {
    transform: scale(1.2);
}

.gallery .gallery-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .7);
    transition: .5s;
    z-index: 1;
}

.gallery .gallery-item:hover .gallery-icon {
    width: 100%;
    height: 100%;
}

.gallery .gallery-icon .btn {
    opacity: 0;
    transition: .5s;
}

.gallery .gallery-item:hover .gallery-icon .btn {
    opacity: 1;
    transition-delay: .5s;
}


/*** Team ***/
.team {
    position: relative;
}

.team::before {
    position: absolute;
    content: "";
    width: 200%;
    height: 200px;
    top: 50%;
    left: -50%;
    transform: translateY(-50%);
    margin-top: 1rem;
    background: var(--bs-primary);
}

.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    text-align: center;
    background: rgba(255, 255, 255, .5);
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-overlay {
    background: rgba(255, 255, 255, .9);
}

.team-overlay p {
    letter-spacing: 1px;
}

.team-overlay .btn-dark {
    border-width: 2px;
    color: var(--bs-dark);
    background: transparent;
}

.team-overlay .btn-dark:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item {
    position: relative;
}

.testimonial-carousel .owl-item::before {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .1;
}

.testimonial-carousel .owl-item img {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.testimonial-carousel .owl-item,
.testimonial-carousel .owl-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item span {
    letter-spacing: 2px;
}

.testimonial-carousel .owl-item.center .bg-light {
    background: var(--bs-primary) !important;
}

.testimonial-carousel .owl-item.center .bg-light * {
    color: var(--bs-dark) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Footer ***/
@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--bs-secondary);
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 10px;
}
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 10px;
}