/* ===================================
   CREACTO - Estilos Profissionais
   Paleta: Preto (#0E0E0E), Branco (#FFFFFF), Azul Petróleo (#00C2CB), Cinza Claro (#EDEDED)
   =================================== */

:root {
  /* Paleta de cores CREACTO */
  --primary-black: #0E0E0E;
  --primary-white: #FFFFFF;
  --petrol-blue: #00C2CB;
  --petrol-dark: #0099A5;
  --neutral-gray: #EDEDED;
  --text-dark: #111111;
  --text-light: #666666;
  --text-muted: #999999;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--petrol-blue) 0%, var(--petrol-dark) 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary-black) 0%, #1a1a1a 100%);
  
  /* Sombras */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.2);
  
  /* Transições */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--neutral-gray);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-light);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  padding: 0 20px;
}

/* Header/Navbar */
.navbar {
  background: var(--primary-black) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-white) !important;
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--petrol-blue) !important;
}

.navbar-nav .nav-link {
  color: var(--primary-white) !important;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: var(--petrol-blue);
  color: var(--primary-white) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Botões */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 12px 24px;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-white);
  border: none;
}

.btn-primary:hover {
  background: var(--petrol-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--primary-white);
}

.btn-secondary {
  background-color: var(--text-light);
  color: var(--primary-white);
  border: none;
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  color: var(--primary-white);
}

.btn-outline-primary {
  border: 2px solid var(--petrol-blue);
  color: var(--petrol-blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--petrol-blue);
  color: var(--primary-white);
  border-color: var(--petrol-blue);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--primary-white);
  background: transparent;
}

.btn-outline-light:hover {
  background-color: var(--petrol-blue);
  border-color: var(--petrol-blue);
  color: var(--primary-white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: var(--transition-normal);
  background: var(--primary-white);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card-header {
  background: var(--primary-black);
  color: var(--primary-white);
  border: none;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background-color: var(--neutral-gray);
  border-top: 1px solid #e0e0e0;
  padding: 1rem 1.5rem;
}

/* Formulários */
.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition-fast);
  background-color: var(--primary-white);
  color: var(--text-dark);
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--petrol-blue);
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.1);
  outline: none;
}

.form-control.is-valid {
  border-color: #28a745;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  background-color: var(--primary-white);
}

.form-select:focus {
  border-color: var(--petrol-blue);
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.1);
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.valid-feedback {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Cursor "mão" e feedback de interação */
select, button, .btn, [type="submit"] {
  cursor: pointer;
}

/* Realce suave no select ao hover/focus (usar a cor primária do site) */
select:hover, select:focus {
  border-color: #2fb6c4;
  box-shadow: 0 0 0 3px rgba(47, 182, 196, .2);
  outline: none;
}

/* Botão com resposta visual */
button:hover, .btn:hover, [type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

button:active, .btn:active, [type="submit"]:active {
  transform: translateY(0);
}

/* Placeholder mais legível no textarea */
textarea::placeholder {
  color: #9aa3ab;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-weight: 500;
  box-shadow: var(--shadow-light);
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background: linear-gradient(135deg, var(--neutral-gray), #e9ecef);
  color: var(--text-dark);
  border-left: 4px solid var(--petrol-blue);
}

/* Carrossel */
.carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
  width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  background: rgba(0, 0, 0, 0.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--petrol-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--petrol-blue);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

/* Grid layouts */
.row {
  margin-left: -15px;
  margin-right: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-auto, .col-lg, .col-lg-1, .col-lg-2, .col-lg-3,
.col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8,
.col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4,
.col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9,
.col-md-10, .col-md-11, .col-md-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4,
.col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9,
.col-sm-10, .col-sm-11, .col-sm-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Portfolio Grid */
.portfolio-grid .card {
  height: 100%;
}

.portfolio-grid .card-img-top {
  height: 250px;
  object-fit: cover;
}

/* Team Grid */
.team-grid .card {
  text-align: center;
  height: 100%;
}

.team-grid .card-img-top {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem auto;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
}

.badge.bg-primary {
  background-color: var(--petrol-blue) !important;
}

.badge.bg-secondary {
  background-color: var(--text-light) !important;
}

.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: var(--text-dark) !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

/* Tables */
.table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  background: var(--primary-white);
}

.table thead th {
  background: var(--primary-black);
  color: var(--primary-white);
  border: none;
  font-weight: 600;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: var(--neutral-gray);
}

/* Footer */
footer {
  background: var(--primary-black);
  color: var(--primary-white);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

footer small {
  color: var(--text-muted);
}

/* Weather/Temperature Display */
.weather-info {
  background: var(--gradient-primary);
  color: var(--primary-white);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  display: inline-block;
  margin: 1rem 0;
}

/* Greeting Display */
.greeting-display {
  background: var(--neutral-gray);
  color: var(--text-dark);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  display: inline-block;
  margin: 1rem 0;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-dark);
  color: var(--primary-white);
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  color: var(--primary-white);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  color: var(--text-muted);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Loading states */
.spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.125rem;
}

.btn .spinner-border {
  margin-right: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Utility classes */
.bg-light {
  background-color: var(--neutral-gray) !important;
}

.bg-dark {
  background-color: var(--primary-black) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.border-0 {
  border: 0 !important;
}

.shadow-sm {
  box-shadow: var(--shadow-light) !important;
}

.shadow {
  box-shadow: var(--shadow-medium) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-strong) !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .carousel-item img {
    height: 250px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.25rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .card {
    margin: 0.5rem;
  }
  
  .portfolio-grid .card-img-top,
  .team-grid .card-img-top {
    height: 200px;
  }
  
  .team-grid .card-img-top {
    width: 100px;
    height: 100px;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #e0e0e0;
  }
}
.btn-info {
  background-color: #35BFC5 !important;
  border: none !important;
  transition: all 0.3s ease;
}

.btn-info:hover {
  background-color: #2BAEB5 !important;
  transform: scale(1.05);
}