/*
Theme Name: Conecta Pharma 360
Theme URI: https://conectapharma.rcconsultoriafarmaceutica.com.br/
Description: Tema personalizado para a landing page Conecta Pharma 360.
Version: 1.0
Author: Anderson Cavalcantti
Author URI: https:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: conecta-pharma
*/

/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --color-brand-dark: #0A0A0B;
  --color-brand-neutral: #1C1C1E;
  --color-brand-orange-deep: #D9480F;
  --color-brand-orange-vibrant: #FF922B;
  --color-brand-accent: #E9ECEF;
}

body {
  background-color: var(--color-brand-dark);
  color: var(--color-brand-accent);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  overflow-x: hidden;
}

.font-display {
  font-family: "Space Grotesk", sans-serif;
}

.text-balance {
  text-wrap: balance;
}

.glass-card {
  background-color: rgba(28, 28, 30, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.hover-card-effect {
  transition: all 0.3s ease;
  cursor: default;
}

.hover-card-effect:hover {
  transform: scale(1.02);
  border-color: rgba(217, 72, 15, 0.5);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 20px rgba(217, 72, 15, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-brand-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-brand-neutral);
  border-radius: 9999px;
  border: 2px solid var(--color-brand-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 72, 15, 0.5);
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 146, 43, 0.2), 0 0 10px rgba(255, 146, 43, 0.1); }
  50% { box-shadow: 0 0 20px rgba(255, 146, 43, 0.6), 0 0 30px rgba(255, 146, 43, 0.3); }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Background Flares */
.flare-blue {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 70vw;
  height: 70vw;
  background: rgba(37, 99, 235, 0.3);
  filter: blur(180px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 3rem 0;
}

.bg-flare {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
}


/* =========================
   GALERIA / MODAL / LIGHTBOX
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumb:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(217, 72, 15, 0.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.75), rgba(10,10,11,0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-thumb:hover .gallery-thumb-overlay {
  opacity: 1;
}

.gallery-modal-panel {
  max-height: 90vh;
  overflow-y: auto;
}

.gallery-lightbox-image {
  max-width: min(94vw, 1400px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.gallery-icon-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-icon-btn:hover {
  background: rgba(217, 72, 15, 0.95);
  border-color: rgba(217, 72, 15, 1);
  color: #fff;
}

.gallery-nav-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: rgba(10,10,11,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-nav-btn:hover {
  background: rgba(217, 72, 15, 0.95);
  border-color: rgba(217, 72, 15, 1);
  color: #fff;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-lightbox-image {
    max-width: 94vw;
    max-height: 72vh;
  }
}