/* Variables */
:root {
    --color-accent: #06b6d4;
    --color-text: #1f2937;
    --color-text-light: #ffffff;
    --color-card-bg: #ffffff;
    --color-glass-bg: rgba(255, 255, 255, 0.4);
    --color-sidebar-bg: rgba(255, 255, 255, 0.8);
    --color-link: #06b6d4;
    --main-gradient: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    --transition-fast: 0.2s cubic-bezier(.4,0,.2,1);
    --transition-smooth: 0.4s ease;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    min-height: 100vh;
    background: var(--main-gradient);
    color: var(--color-text);
    line-height: 1.7;
    scroll-behavior: smooth;
    overflow-x: hidden;
    padding-top: 5rem;
    transition: background var(--transition-smooth), color var(--transition-smooth);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--color-glass-bg) !important;
  backdrop-filter: blur(12px);
  padding: 0.4rem 0.7rem; /* apenas altura reduzida */
  z-index: 1050;
  transition: background 0.3s;
}

.navbar-brand img {
  max-height: 2.5rem; /* levemente menor */
  transition: max-height 0.3s ease;
}

.navbar-brand img:hover { transform: scale(1.05); }
.navbar-nav .nav-link {
    color: inherit !important;
    font-weight: 600;
    border-radius: 1.875rem;
    margin: 0 0.3rem;
    padding: 0.5rem 1.2rem;
    letter-spacing: 1px;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    color: var(--color-primary-dark) !important;
    box-shadow: 0 0.125rem 0.75rem rgba(99,102,241,0.6);
}
.dropdown-menu {
    background: var(--color-sidebar-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-primary);
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 3rem rgba(0,0,0,0.3);
}
.dropdown-item {
    color: inherit !important;
    padding: 0.75rem 1.5rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.dropdown-item:hover {
    background: rgba(99,102,241,0.15) !important;
    color: var(--color-primary) !important;
}
.dropdown-item .fas { color: var(--color-primary) !important; }

/* Hero Section */
.hero-section {
  position: relative;
  width: 100vw;
  height: 30vh; /* Reduzido de 40vh para 30vh */
  min-height: 200px; /* Reduzido de 250px para 200px */
  max-height: 360px; /* Limite opcional para evitar exageros em telas grandes */
  background: var(--color-primary-dark);
  overflow: hidden;
}

.hero-section .swiper,
.hero-section .swiper-slide {
    width: 100vw;
    height: 100%;
    background: center/cover no-repeat;
}
.hero-section .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    z-index: 1;
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 37.5rem;
    width: 100%;
    padding: 1.2rem;
    background: rgba(99,102,241,0.32);
    backdrop-filter: blur(8px);
    border-radius: 0 0 1.5rem 1.5rem;
    border-bottom: 2px solid var(--color-accent);
    text-align: center;
    animation: fadeInUp 1s;
    z-index: 2;
}
.hero-content h1 {
    font-size: 1.7rem;
    color: var(--color-accent);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    text-shadow: 0 0.625rem 0.5rem var(--color-accent);
}
.hero-content p {
    margin-bottom: 1rem;
    text-shadow: 0 0 4px #000;
}
.hero-content .btn {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 1.875rem;
    letter-spacing: 1px;
    text-shadow: 0 0 0.5rem rgba(255,255,255,0.8);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hero-content .btn:hover {
    transform: scale(1.07) rotate(-1deg);
    box-shadow: 0 0.5rem 2rem rgba(188, 188, 214, 0.8), 0 0 0 0.25rem rgba(6,182,212,0.2);
    color: var(--color-primary);
}

/* About Section */
.sobre-section {
    max-width: 59.375rem;
    margin: 2.5rem auto;
    padding: 2rem;
    background: var(--color-card-bg);
    border: 2px solid var(--color-primary);
    border-radius: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0.5rem 2rem rgba(99,102,241,0.33);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sobre-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-left: 1rem;
    border-left: 0.5rem solid var(--color-accent);
    text-shadow: 0 0 0.75rem var(--color-primary);
    margin-bottom: 1.5rem;
}
.sobre-text,
.sobre-missao {
    max-width: 50rem;
    margin: 0.5rem auto;
    font-size: 1.125rem;
    line-height: 1.8;
}
.sobre-missao {
    font-style: italic;
    color: var(--color-accent);
    border-left: 0.25rem solid var(--color-text);
    padding-left: 1rem;
}

/* Services */
#servicos {
    padding: 3.75rem 0;
    background: var(--main-gradient);
    text-align: center;
}
#servicos h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary-dark);
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-shadow: 0 0.125rem 0.5rem rgba(30,58,138,0.2);
}
#servicos .card {
    background: var(--color-card-bg);
    border-radius: 1.375rem;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 0.25rem 1.5rem rgba(30,58,138,0.08);
}
#servicos .card:hover {
    transform: translateY(-0.625rem) scale(1.04);
    box-shadow: 0 0.75rem 2.25rem rgba(6,182,212,0.55);
}
#servicos .card i {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0.125rem 0.5rem rgba(6,182,212,0.33));
    transition: transform var(--transition-fast);
    color: var(--color-primary);
}
#servicos .card:hover i { transform: scale(1.1) rotate(5deg); color: var(--color-accent); }
#servicos .card h5,
#servicos .card p {
    margin: 0.5rem 0;
    color: var(--color-text);
}

/* Album */
#album .card {
    background: var(--color-card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.9375rem rgba(0,0,0,0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
#album .card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.75rem 1.875rem rgba(0,0,0,0.15), 0 0 0 0.5rem rgba(6,182,212,0.55);
}
.album-image,
#album .card img {
    width: 100%;
    height: 11.25rem;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
    aspect-ratio: 4 / 3;
    transition: transform var(--transition-fast);
}
.album-image:hover { transform: scale(1.05); }

/* Buttons */
.btn,
.usina-button {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 1.875rem;
    letter-spacing: 1px;
    text-shadow: 0 0 0.375rem var(--color-text-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    color: var(--color-primary-dark);
    box-shadow: 0 0.25rem 1rem rgba(6,182,212,0.55);
}
.btn:hover,
.usina-button:hover {
    transform: scale(1.09) rotate(-1deg);
    box-shadow: 0 0.5rem 2rem rgba(6,182,212,0.88);
    color: var(--color-primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 0.625rem; }
::-webkit-scrollbar-track { background: var(--color-primary-dark); }
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 0.625rem;
    border: 2px solid var(--color-primary-dark);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(2.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-2.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseBorder {
    from { border-color: var(--color-primary); }
    to   { border-color: rgba(99,102,241,0.5); }
}
@keyframes moveLight1 {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(6.25rem,5rem) scale(1.1); }
    100% { transform: translate(0,0) scale(1); }
}
@keyframes moveLight2 {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(-7.5rem,-5.625rem) scale(1.05); }
    100% { transform: translate(0,0) scale(1); }
}


.logo-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease-in-out;
}

.logo-swiper .swiper-slide img {
  max-height: 50px; /* Reduziu de 70px para 50px */
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.logo-swiper .swiper-slide img:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
}

/* Ajustes para deixar o #album mais compacto */
.album-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}

#album {
  padding: 1.5rem 0; /* reduz o padding vertical */
}

#album h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

#album .card {
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.07);
}

#album .p-3 {
  padding: 0.75rem 1rem !important;
}

#album .p-3 h6 {
  font-size: 0.95rem;
  line-height: 1.2;
}

.album-image,
#album .card img {
  height: 8.5rem; /* reduzido de 11.25rem */
  border-radius: 0.5rem 0.5rem 0 0;
}


@media (max-width: 768px) {
  .hero-section {
    height: 25vh;
    min-height: 180px;
  }

  .sobre-section {
    padding: 1rem;
  }

  #servicos .card p {
    font-size: 0.875rem;
  }

  #album .p-3 h6 {
    font-size: 0.875rem;
  }
}

@media (min-width: 1400px) {
  .hero-section {
    height: 50vh;
  }

  .cor-card {
    padding: 2.5rem;
  }

  #servicos .card i {
    font-size: 3.2rem;
  }
}

/* Fontes menores para telas muito pequenas */
@media (max-width: 576px) {
  body {
    font-size: 0.875rem; /* Reduzido de 1rem para 0.875rem */
  }

  .hero-content h1 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 0.875rem;
  }

  .sobre-title {
    font-size: 1.5rem;
  }

  .sobre-text,
  .sobre-missao {
    font-size: 1rem;
  }

  #servicos h2,
  #album h2 {
    font-size: 1.5rem;
  }

  #servicos .card h5 {
    font-size: 1rem;
  }

  #servicos .card p,
  #album .p-3 h6 {
    font-size: 0.8rem;
  }

  .btn,
  .usina-button {
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
  }

  .navbar-nav .nav-link {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}
@media (max-width: 576px) {
  .sobre-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .sobre-text,
  .sobre-missao {
    font-size: 0.875rem; /* Reduzido para melhorar leitura */
    line-height: 1.5;
  }

  .sobre-section {
    padding: 1.5rem 1rem; /* Menos padding lateral em telas pequenas */
  }
}
@media (max-width: 768px) {
  .cor-card {
    padding: 1rem !important;
  }
}
@media (max-width: 768px) {
  #cor .cor-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cor-title {
    font-size: 1.5rem;
  }

  .cor-subtitle {
    font-size: 0.95rem;
  }

  .cor-carousel-image {
    max-height: 200px;
    object-fit: cover;
  }

  .cor-card {
    padding: 1rem !important;
  }

  .cor-card p,
  .cor-card li,
  .cor-card a,
  .cor-card h6 {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  .cor-card ul {
    padding-left: 1rem;
  }

  .cor-card .fs-5 {
    font-size: 1rem !important;
  }

  .cor-card .pt-4.mt-4 {
    padding-top: 1.5rem !important;
    margin-top: 1.5rem !important;
  }

  .cor-card .d-inline-flex {
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 0.875rem;
  }

  .cor-card .bi {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 576px) {
  .cor-title {
    font-size: 1.3rem;
  }

  .cor-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .cor-carousel-image {
    max-height: 180px;
  }

  .cor-card p,
  .cor-card li,
  .cor-card a {
    font-size: 0.82rem !important;
  }

  .cor-card h6 {
    font-size: 0.9rem !important;
  }

  .cor-card .fs-5 {
    font-size: 0.95rem !important;
  }

  .cor-card .bi {
    font-size: 1rem !important;
  }
}