/* Variables */
:root {
    --primary-blue: #0066cc;
    --dark-blue: #004499;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --gray: #6c757d;
    --warning: #ffc107;
    --success: #25d366;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Scroll Indicator */
.scroll-indicator {
    background: #0d2298;
    margin: 0;
    display: block;
    position: relative;
    z-index: 20;
}

.scroll-arrow {
    color: var(--primary-blue);
    font-size: 3.4rem;
    background: var(--white);
    width: 100%;
    height: 54px;
    margin: 0 auto; /* center horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 35px 35px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    position: relative;
    top: 0;
    z-index: 60; /* sit above the blue band */
}

@media (max-width: 768px) {
    .scroll-arrow {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .scroll-arrow {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}



/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navbar - Override Bootstrap defaults */
.navbar.navbar-expand-lg {
    background: rgba(255, 255, 255, 0.05); /* Initially transparent */
    padding: 1rem 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 48px; /* keep same visual height */
    transition: transform 200ms ease, opacity 200ms ease;
    display: inline-block;
}

.navbar-nav .nav-link {
    position: relative;
    padding: .45rem .6rem; /* keep compact */
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    color: rgba(255,255,255,0.95);
    transition: color .18s ease, transform .18s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    bottom: -6px;
    height: 3px;
    width: 60%;
    background: var(--warning);
    border-radius: 4px;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
    opacity: 0;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.navbar-nav .nav-link:focus {
    color: var(--warning) !important;
    outline: none;
}

/* Toggler modern look (keeps same size) */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 10px;
    transition: background .15s ease, transform .12s ease;
}

.navbar-toggler:active,
.navbar-toggler:focus {
    transform: translateY(1px);
    background: rgba(255,255,255,0.045);
}

.navbar-dark .navbar-toggler-icon {
    background-image: none; /* hide default svg so we can draw custom */
}

.navbar-toggler .hamburger {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 14px;
}
.navbar-toggler .hamburger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .18s ease, opacity .12s ease;
}
.navbar-toggler .hamburger span:nth-child(1){ top: 0; }
.navbar-toggler .hamburger span:nth-child(2){ top: 6px; }
.navbar-toggler .hamburger span:nth-child(3){ top: 12px; }

@media (max-width: 991px) {
    .navbar-nav .nav-link { font-size: .95rem; }
}

/* keep overall navbar height unchanged on small viewports */
@media (max-width: 576px) {
    .navbar { padding: .9rem 0; }
}

/* Hero Section with Animated Slider */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    /* dark blue base for the hero session body behind slides */
    background-color: var(--dark-blue);
}

/* Animated Slider Backgrounds */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* slides are below the blue overlay */
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Avoid costly transforms (scale/rotate) to reduce GPU usage; use opacity only */
    transition: opacity 900ms ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider .slide.fading {
    opacity: 0;
    z-index: 1;
}

.hero-slider .slide.next {
    opacity: 0;
}

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* above overlay but below content */
    pointer-events: none;
}

.float-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    animation: floatPringles 8s ease-in-out infinite;
}

.circle-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 25%;
    animation-delay: -4s;
}

/* Moving clouds that pass slowly across the hero (use image files in assets/images/Home) */
.cloud {
    position: absolute;
    top: 18%;
    left: -20%; /* start closer to viewport so it appears immediately */
    width: 420px;
    height: 300px;
    background-size: cover; /* fill element for larger appearance */
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    opacity: 0.65; /* more transparent */
    z-index: 3;
    animation-name: moveClouds;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-delay: 0s; /* start immediately */
    animation-fill-mode: both; /* keep transform state during animation */
    will-change: transform; /* hint to browser for smoother animation */
}

.cloud-1 { top: 1%; left: -10%; width: 500px; height: 282; animation-duration: 80s; animation-delay: 0s; opacity: 0.6; background-image: url("../images/Home/nuvem3.webp"); }
.cloud-2 { top: 26%; left: -20%; width: 350px; height: 189px; animation-duration: 120s; animation-delay: 0s; opacity: 0.55; transform: scale(0.95); background-image: url("../images/Home/nuvem5.webp"); }

@keyframes moveClouds {
    0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(220%,0,0); }
}

/* Note: removed a global 'prefers-reduced-motion' block for clouds so animations run by default.
   If you want to respect the user's reduced-motion preference, re-add a rule here that
   targets only specific elements rather than clouds. */

@media (max-width: 576px) {
    .cloud { display: none; }
}

/* Quick toggle: add `no-clouds` to <body> to hide clouds */
.no-clouds .cloud { display: none !important; }

/* Ensure clouds animate by default unless explicitly disabled */
body:not(.no-clouds) .cloud {
    animation-play-state: running !important;
}

/* Cloud toggle button styling */
.cloud-toggle {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 6;
    padding: .35rem .6rem;
    font-size: .85rem;
    opacity: 0.95;
}

/* Force clouds to show even if prefers-reduced-motion is enabled */
.force-clouds .cloud { display: block !important; opacity: 0.65 !important; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2; /* sits above slides, below floating elements and text */
    /* make overlay semi-transparent blue to sit over the images */
    background: linear-gradient(135deg, rgba(10, 16, 142, 0.50), rgba(10, 16, 142, 0.50));
}

/* Ensure hero content (title/button) sits above the overlay/background */
.hero-section .container {
    position: relative;
    z-index: 4; /* content (title/buttons) above overlay and floating elements */
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.nav-dot.active {
    background: rgba(255, 193, 7, 0.9);
    transform: scale(1.2);
}

/* Solar Weather Widget */
.solar-weather-widget {
    position: absolute;
    top: 85px;
    right: 15px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.945);
    /* opacity: 0.7; */
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    max-width: 260px;
    filter: blur();
    /* min-height: 200px; */
}

.widget-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.widget-loading i {
    font-size: 1.2rem;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
}

.widget-item i {
    font-size: 1.1rem;
    width: 20px;
    color: var(--primary-blue);
}

.widget-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-left: 30px;
    margin-top: -8px;
}

/* Itens especiais do sol - texto ao lado direito */
.widget-item:has(.fa-sun),
.widget-item:has(.fa-moon) {
    justify-content: space-between;
}

.widget-item:has(.fa-sun) small,
.widget-item:has(.fa-moon) small {
    margin-left: 0;
    margin-top: 0;
    margin-right: 8px;
    text-align: right;
    flex: 1;
}

.widget-location {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.widget-temp,
.widget-solar,
.widget-wind {
    font-weight: 600;
    color: #333;
}

/* Botões menores no widget */
.solar-weather-widget .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-width: auto;
}

.hero-title {
    animation: slideInUp 1s ease-out;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease;
}

.hero-subtitle {
    animation: slideInUp 1s ease-out 0.2s both;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease;
}

.whatsapp-btn {
    animation: slideInUp 1s ease-out 0.4s both;
    background: linear-gradient(135deg, #0a108e, #33affe);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #0a108e, #33affe);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(10, 16, 142, 0.4);
    filter: brightness(1.1);
}

/* Contato Section Background (full-bleed image) */
#contato {
    position: relative;
    color: #ffffff; /* ensure text remains white */
    /* Use correct relative path from assets/css/ to assets/images/ (../images/...) */
    background:  url('../images/contato2.jpg') center/cover no-repeat;
    /* sensible fallback color while image loads */
    background-color: var(--dark-blue);
    padding: 6rem 0 0; /* give more vertical space to show the image */
    min-height: 420px; /* ensure visible area */
}

/* Slight overlay to improve contrast for the contact form */
#contato::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,12,28,0.35), rgba(2,12,28,0.55));
    pointer-events: none;
    z-index: 1;
}

/* Keep the contact form content above the overlay */
#contato .container,
#contato .contact-form-container {
    position: relative;
    z-index: 2;
}

/* Gradient buttons for About section */
.btn-gradient {
    background: linear-gradient(135deg, #0a108e, #33affe);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(10, 16, 142, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #0a108e, #33affe);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 119, 17, 0.35);
    filter: brightness(1.1);
    color: white;
}

/* Green gradient button */
.btn-gradient-green {
    background: linear-gradient(135deg, #71af09, #3e7800);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(113, 175, 9, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient-green:hover {
    background: linear-gradient(135deg, #71af09, #3e7800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(113, 175, 9, 0.35);
    filter: brightness(1.1);
    color: white;
}



/* Section Titles */
.section-title {
    color: white;
    font-weight: 700;
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--warning));
    border-radius: 2px;
}

/* Cards Section Background */
section#servicos {
    background: linear-gradient(rgba(10, 16, 142, 0.7), rgba(10, 16, 142, 0.7)), 
                url('../images/servicos-bg.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    /* removed fixed attachment for better performance on mobile */
    background-attachment: scroll;
    color: white;
    position: relative;
}

section#servicos .container {
    position: relative;
    z-index: 2;
}

section#servicos .section-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* About Section Background */
section#sobre {
    position: relative;
    background-color: rgba(255, 255, 255, 0.3);
}

section#sobre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/sobre-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: -1;
}

/* Service Cards - simplified static layout for `#servicos`
   NOTE: this block intentionally removes animations, transforms,
   and carousel-specific layout. It provides a simple responsive
   grid with up to 3 columns. Background rules are kept elsewhere. */

/* Outer container adjustments: keep width constraints but allow normal flow */
#servicos-cards {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    box-sizing: border-box;
}

.cards-container {
    overflow: visible; /* allow normal page flow */
    position: relative;
    width: 100%;
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 12px;
    height: 600px;
}

/* Simple, predictable grid for service cards (no transforms/animation) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 991px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .service-grid { grid-template-columns: 1fr; }
}

/* Card base styles (no animation, no transform, stable size) */
.service-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: white;
    padding: 1rem;
    width: 340px;
    height: 480px;
    max-width: 100%;
    overflow: hidden;
    transition: none;
    transform: none;
    opacity: 1;
}

/* Remove any special center-card treatment */
.service-card.center-card {
    transform: none;
    box-shadow: var(--shadow);
    z-index: auto;
}

.service-img {
    height: auto;
    background: transparent;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
}

.service-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.service-card .card-body {
    padding: 1rem;
}

/* Neutralize any carousel/track specific classes to avoid conflicting layout */
.cards-track,
.service-card-wrapper,
.cards-track > .service-card-wrapper,
.carousel-arrow {
    all: unset;
    display: block;
    box-sizing: border-box;
}

/* Hide carousel arrow UI (if present) */
.carousel-arrow { 
  display: block !important; 
  position: absolute;
  top: calc(50% + 25px);
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  color: #0066cc;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 30px;
  text-align: center;
  line-height: 50px;
  transition: background 0.3s;
  padding: 0;
  margin: 0;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 1);
}

.carousel-arrow.left { left: -50px; }
.carousel-arrow.right { right: -50px; }

/* Remove track transitions and touch specific rules */
.cards-track { display: block; }

/* Remove custom scrollbars for service container to keep default browser behavior */
#servicos-cards::-webkit-scrollbar { display: none; }

/* About Section */
.about-image img {
    border-radius: 15px;
    /* box-shadow: var(--shadow-lg); */
}

/* Force no margin or shadow for the about-image container and img */
.about-image {
    margin: 0 !important;
    padding: 0 !important;
}

.about-image img {
    box-shadow: none !important; /* ensure no bootstrap shadow remains */
    margin: 0 !important;
}

/* Style for autoplay video in About section (replaces foto2) */
.about-image video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    /* box-shadow: var(--shadow-lg); */
    object-fit: cover;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.2;
    color: #000000;
}

/* Blog: set card text color to requested brand color */
#blog .card-text {
    color: #1c4178 !important;
    line-height: 1.2;
    font-size: 0.8rem;
}

/* Process Section */
#processo {
    position: relative;
    background-color: rgba(255, 255, 255, 0.479);
    background-image: url('../images/Sobre/placasolar2.png');
    background-repeat: no-repeat;
    background-size: 35%;
    background-position: bottom right;
    /* background-attachment: fixed; */
}

.process-card {
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 5px 0px 25px rgba(0, 0, 0, 0.45);;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    height: 280px;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.process-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #71af09, #3e7800);
    color: #fffef5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
}

/* Process Icon - small rectangular images */
.process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    /* restored blue background to match original design */
    background: #33affe;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.process-icon img {
    max-width: 100px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.process-card:hover .process-icon img {
    transform: scale(1.1);
}

.process-card h4 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.process-card p {
    color: #555;
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 350px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card .card-body {
    padding: 1.5rem;
}

/* Blog Section Background - Blue gradient like services */
section#blog {
    background: linear-gradient(rgba(10, 16, 142, 0.7), rgba(10, 16, 142, 0.7)), 
                url('../images/servicos-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

section#blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 16, 142, 0.6);
    z-index: 1;
}

section#blog .container {
    position: relative;
    z-index: 2;
}

section#blog .section-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Mapa Section - same as blog */
section#mapa {
    background: linear-gradient(rgba(10, 16, 142, 0.7), rgba(10, 16, 142, 0.7)), 
                url('../images/servicos-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

section#mapa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 16, 142, 0.6);
    z-index: 1;
}

section#mapa .container {
    position: relative;
    z-index: 2;
}

section#mapa .section-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Counter styles for Mapa section */
.counter {
    text-align: center;
    color: white;
}

.counter-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.counter-number-wrapper {
    font-size: 2rem;
    font-weight: 700;
}

.counter-number {
    display: inline-block;
}

.counter-number-prefix,
.counter-number-suffix {
    font-size: 2rem;
    font-weight: 600;
}

/* Alagoas map styles */
.alagoas-map {
    width: 100%;
    max-width: 800px;
    height: auto;
    filter: brightness(0) invert(1); /* Make lines white if needed */
}

/* Instagram Section */
#instagram {
    background: #fff;
}

/* General gradient title - blue gradient */
.gradient-title {
    background: linear-gradient(135deg, #0a108e, #33affe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Instagram section title: use same blue->yellow gradient as the Instagram button */
#instagram .section-title,
#instagram .gradient-title {
    background: linear-gradient(135deg, #0a108e, #33affe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.instagram-embed-container {
    width: 336px;
    height: 555px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    border-radius: 10px;
    padding: 0; /* remove inner padding so embed fits exactly */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Force embedded instagram block to fill the container */
.instagram-embed-container .instagram-media,
.instagram-embed-container blockquote.instagram-media,
.instagram-embed-container iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Small-screen fallback: use natural flow on very small viewports */
@media (max-width: 360px) {
    .instagram-embed-container {
        width: 100%;
        height: auto;
        min-height: 400px;
        padding: 12px;
    }

    .instagram-embed-container .instagram-media,
    .instagram-embed-container blockquote.instagram-media,
    .instagram-embed-container iframe {
        height: auto !important;
    }
}

/* Contact Form */
.contact-form-container {
    box-shadow: var(--shadow-lg);
    max-width: 500px;
}

/* Fixed size for contact panels to keep layout consistent */
#contact-panels {
    display: block;
}
.contact-panel {
    height: 250px; /* fixed height on desktop */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
}

/* Make map iframe fill the panel height */
#panel-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

@media (max-width: 768px) {
    .contact-panel {
        height: 420px; /* taller panels on mobile for readability */
    }
    #panel-map iframe {
        min-height: 420px;
    }
}

/* Apply gradient text inside contact panels (exclude form controls and buttons) */
#contact-panels .contact-panel h1,
#contact-panels .contact-panel h2,
#contact-panels .contact-panel h3,
#contact-panels .contact-panel h4,
#contact-panels .contact-panel h5,
#contact-panels .contact-panel h6,
#contact-panels .contact-panel p,
#contact-panels .contact-panel a,
#contact-panels .contact-panel label,
#contact-panels .contact-panel span,
#contact-panels .contact-panel strong,
#contact-panels .contact-panel li,
#contact-panels .contact-panel small {
    background: linear-gradient(90deg, #0a108e, #33affe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Keep interactive elements readable */
#contact-panels .contact-panel input,
#contact-panels .contact-panel textarea,
#contact-panels .contact-panel .btn {
    -webkit-text-fill-color: initial;
    color: initial;
    background-clip: border-box;
}

/* Contact image (right column) */
.contact-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    min-height: 320px;
}

@media (max-width: 991px) {
    /* On tablet/mobile stack and center image */
    .contact-image img {
        min-height: 240px;
        margin-top: 1rem;
    }
    .contact-form-container {
        max-width: 100%;
    }
}

/* Contact icons (blue gradient squares with white icons) */
.contact-icons {
    --square-size: 64px;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-square {
    width: var(--square-size);
    height: var(--square-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #0a54d3, #0056b3);
    box-shadow: 0 8px 20px rgba(5, 30, 80, 0.25);
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex: 0 0 auto;
}

.icon-square i {
    font-size: 1.2rem;
    color: #ffffff;
}

.icon-square:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 30px rgba(5, 30, 80, 0.35);
}

/* Icon title below on hover */
.icon-title {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    text-align: center;
}

.icon-container:hover .icon-title {
    opacity: 1;
}

/* Floating animation (gentle) */
@keyframes floatIcons {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.contact-icons .icon-square:nth-child(1) { animation: floatIcons 3.6s ease-in-out infinite; }
.contact-icons .icon-square:nth-child(2) { animation: floatIcons 3.2s ease-in-out 0.2s infinite; }
.contact-icons .icon-square:nth-child(3) { animation: floatIcons 4s ease-in-out 0.05s infinite; }
.contact-icons .icon-square:nth-child(4) { animation: floatIcons 3.8s ease-in-out 0.12s infinite; }



/* Make icons slightly smaller on mobile */
@media (max-width: 576px) {
    .contact-icons { --square-size: 52px; }
}

.contact-form-container .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-form-container .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.contact-form-container .btn {
    border-radius: 50px;
    font-size: 1.1rem;
    background: var(--primary-blue);
    border: none;
    transition: all 0.3s ease;
}

.contact-form-container .btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.testimonial-author {
    color: var(--primary-blue);
}

/* Partners */
.partner-logo {
    padding: 1rem;
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 150px;
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Footer */
footer {
    /* darker footer background for better contrast */
    background: linear-gradient(180deg, #e9ecef, #dee2e6);
    color: #222; /* darker text for contrast on light bg */
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* helper class in case specific footer area needs to be targeted */
.bg-footer { background: linear-gradient(180deg, #e9ecef, #dee2e6); color: #222; }

footer a { color: #0a108e; } /* keep links visible and consistent with brand blue */

footer .btn { color: #fff; }

/* Footer improvements: logo sizing + spacing + responsive layout */
.footer-logo img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,0.35));
}

.footer-small-logo {
    width: 96px;
    height: auto;
    vertical-align: middle;
    margin: 0 6px;
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    footer .container .col-lg-6:last-child {
        margin-top: 0.5rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Pringles-like floating animation */
@keyframes floatPringles {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.05);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-35px) rotate(-3deg) scale(0.95);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotate(3deg) scale(1.02);
        opacity: 0.9;
    }
}

/* Enhanced text animations */
.animate-slide-up {
    animation: slideInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-bounce {
    animation: slideInUp 1s ease-out 0.4s both, gentleBounce 2s ease-in-out 1.5s infinite;
}

@keyframes gentleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .whatsapp-btn {
        font-size: 1rem;
        padding: 15px 30px;
    }
    
    .service-card {
        min-height: 320px; /* flexible height instead of fixed 550px */
        min-width: 260px;
        max-width: 360px;
        margin-bottom: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .partner-logo {
        height: 80px;
    }
    
    .partner-logo img {
        max-width: 120px;
        max-height: 60px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-form-container {
        margin: 0 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Bootstrap overrides */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #71af09, #3e7800);
    border-color: #4e7a00;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8fd84a, #4e8a00);
    border-color: #3e7800;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

/* Utility Classes */
.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg);
}
    
    /* Section-specific title colors requested by user */
    .title-green {
        background: linear-gradient(135deg, #71af09, #3e7800);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: inline-block;
    }
    
    .title-yellow {
        color: #ffde59 !important;
    }

    /* Instagram-styled button: 3-color gradient (blue -> green -> yellow) */
    .btn-instagram {
        color: #fff !important;
        background: linear-gradient(135deg, #0a108e 0%, #71af09 50%, #f2b705 100%) !important; /* blue -> green -> yellow */
        border: none;
        box-shadow: 0 6px 20px rgba(10, 16, 142, 0.18);
        transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.12s ease;
    }

    .btn-instagram:hover,
    .btn-instagram:focus {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(10, 16, 142, 0.24);
        color: #fff !important;
        text-decoration: none;
        filter: brightness(1.02);
    }



/* Responsive Design */
@media (max-width: 768px) {
    .solar-weather-widget {
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 12px 15px;
    }

    .widget-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .widget-item {
        flex: 0 0 48%;
        font-size: 0.85rem;
    }

    .widget-item small {
        font-size: 0.7rem;
        margin-left: 25px;
    }
}

/* Force-hide the solar widget on mobile devices to avoid overlaying content */
@media (max-width: 768px) {
    .solar-weather-widget {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 480px) {
    #servicos-cards {
        gap: 1rem;
    }
    
    .service-card {
        min-width: 260px !important;
        max-width: 280px !important;
    }
    
    .service-image {
        width: 160px;
        height: 160px;
    }
    
    .service-img {
        height: 170px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Specifically pause floating animations when parent has .paused */
.floating-elements.paused .float-circle,
.floating-icon.paused,
.process-card.paused {
    animation-play-state: paused !important;
}

/* Instagram preload: show placeholder spinner until embeds are ready */
#instagram {
    position: relative;
}

#instagram .instagram-embed-container {
    position: relative;
    background: #f5f8fa; /* neutral placeholder bg */
}

/* hide actual embed frames/content until ready */
#instagram:not(.instagram-ready) .instagram-embed-container blockquote.instagram-media,
#instagram:not(.instagram-ready) .instagram-embed-container iframe,
#instagram:not(.instagram-ready) .instagram-embed-container .instagram-media {
    opacity: 0;
    pointer-events: none;
}

/* show spinner on top of each container while not ready */
#instagram:not(.instagram-ready) .instagram-embed-container::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 50%;
    border: 4px solid rgba(0,0,0,0.08);
    border-top-color: var(--primary-blue);
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* when ready, reveal embeds */
#instagram.instagram-ready .instagram-embed-container blockquote.instagram-media,
#instagram.instagram-ready .instagram-embed-container iframe,
#instagram.instagram-ready .instagram-embed-container .instagram-media {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Animação para a mão apontando de um lado para o outro */
.pointing {
    font-size: 2rem;
}

.service-card {
  opacity: 0;
  position: relative;
  flex: 0 0 340px;
  transition: opacity 0.5s, transform 0.5s;
}

.carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 1s ease;

}

.carousel-container {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding-top: 50px;
}

.service-card.side {
  opacity: 0.8;
}

.service-card.active {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 15px;
}

.service-card.prev,
.service-card.next {
  cursor: pointer;
}

.service-card.prev {
  transform: none;
}

.service-card.next {
  transform: none;
}

.service-card.hide {
  transform: none;
  opacity: 1;
}

.service-card.new-next {
  transform: none;
  opacity: 1;
}

.swipe {
  width: 400px;
  height: 480px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0;
}

@media (max-width: 768px) {
	.service-card {
		width: 280px;
		height: 400px;
		flex: 0 0 280px;
		opacity: 0;
	}

	.service-card.prev {
		transform: none;
	}

	.service-card.next {
		transform: none;
	}

	.service-card.hide {
		transform: none;
	}

	.service-card.new-next {
		transform: none;
	}

	.swipe {
		width: 320px;
		height: 400px;
	}
}

.member-info {
	text-align: center;
	margin-top: 40px;
	transition: all 0.5s ease-out;
}

.member-name {
	color: #082a7b;
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 10px;
	position: relative;
	display: inline-block;
}

.member-name::before,
.member-name::after {
	content: "";
	position: absolute;
	top: 100%;
	width: 100px;
	height: 2px;
	background: #082a7b;
}

.member-name::before {
	left: -120px;
}

.member-name::after {
	right: -120px;
}

.member-role {
	color: #848696;
	font-size: 1.5rem;
	font-weight: 500;
	opacity: 0.8;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 10px 0;
	margin-top: -15px;
	position: relative;
}

.dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 60px;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(8, 42, 123, 0.2);
	cursor: pointer;
	transition: all 0.3s ease;
}

.dot.active {
	background: #082a7b;
	transform: scale(1.2);
}

.nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(8, 42, 123, 0.6);
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	transition: all 0.3s ease;
	font-size: 1.5rem;
	border: none;
	outline: none;
	padding-bottom: 4px;
}

.nav-arrow:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
	left: 20px;
	padding-right: 3px;
}

.nav-arrow.right {
	right: 20px;
	padding-left: 3px;
}

@media (max-width: 768px) {
	.service-card {
		width: 280px;
		height: 400px;
	}

	.service-card.left-1 {
		transform: translateX(-150px) scale(0.9) translateZ(-100px);
	}

	.service-card.right-1 {
		transform: translateX(150px) scale(0.9) translateZ(-100px);
	}

	.member-name {
		font-size: 2rem;
	}

	.member-role {
		font-size: 1.2rem;
	}

	.member-name::before,
	.member-name::after {
		width: 50px;
	}

	.member-name::before {
		left: -70px;
	}

	.member-name::after {
		right: -70px;
	}
}

/* Sobre Section Background Effects */
.sobre-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    animation: floatShape 15s infinite ease-in-out;
}

.floating-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: #33affe;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: #0a108e;
    bottom: 20%;
    right: -100px;
    animation-delay: -7s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

