/* ====== Bootstrap Customization - CIP Consultoría & Ingeniería ====== */

/* Variables CSS personalizadas */
:root {
  --primary-color: #ff480a;
  --primary-hover: #e63d00;
  --primary-light: #ff6b33;
  --teal: #5a768f;
  --teal-dark: #4a7575;
  --teal-light: #7db3b3;
  --dark-color: #1a1a1a;
  --gray: #6c757d;
  --light-gray: #e8e8e8;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Sobrescribir colores de Bootstrap */
:root {
  --bs-primary: var(--primary-color);
  --bs-primary-rgb: 255, 72, 10;
  --bs-primary-hover: var(--primary-hover);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Cookie Banner */
.cookie-banner {
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Navbar personalizado */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 80px;
  padding: 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  height: 70px;
}

.navbar-brand img {
  height: 63px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
  height: 55px;
}

.nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 2rem);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* Botones personalizados */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 72, 10, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 72, 10, 0.4);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--dark-color);
  transform: translateY(-3px);
}

/* Botón de contacto */
#contactButton {
  white-space: nowrap;
  min-width: 200px;
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  overflow: visible;
  min-height: 44px; /* Tamaño táctil mínimo */
  touch-action: manipulation; /* Elimina delay de 300ms */
}

@media (max-width: 768px) {
  #contactButton {
    min-width: auto;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  background-image: url("../images/imagecopy.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 0;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
  margin-bottom: 1.5rem;
  margin-top: 0;
  white-space: nowrap;
}

.hero-ph {
  font-size: 3rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.9;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 0 auto;
}

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

/* Section Labels */
.section-label {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
}

.section-label.white {
  color: var(--white);
}

/* About Section */
.about {
  padding: 100px 0;
}

.about-image img {
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.02);
}

/* Stats Section */
.stats {
  padding: 80px 0;
}

.stat-card {
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
}

.stat-number {
  color: var(--primary-color);
  font-weight: 700;
}

/* Services Section */
.services {
  padding: 100px 0;
}

.service-item {
  transition: var(--transition);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}

.service-image img {
  transition: transform 0.5s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.15);
}

/* Clients Section */
.clients {
  padding: 100px 0;
}

.client-logo {
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.client-logo:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md) !important;
}

.client-logo img {
  transition: var(--transition);
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.client-logo:hover img {
  filter: grayscale(0%) !important;
  opacity: 1 !important;
}

/* Why Choose Section */
.why-choose {
  position: relative;
  padding: 100px 0;
  background-image: url("../images/imagecopy.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.why-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.feature-card {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  color: var(--primary-color);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

/* Compromiso Section */
.compromiso-section {
  padding: 50px 0 80px 0;
  margin-top: 0;
}

/* Contact Form Section */
.contact-form {
  padding: 100px 0;
}

.contact-icon {
  color: var(--primary-color);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(255, 72, 10, 0.25);
}

/* Footer */
.footer {
  background: var(--dark-color) !important;
}

.footer a {
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-color) !important;
  padding-left: 5px;
}

/* Chatbot */
.chatbot-container {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 999;
}

.chatbot-button {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 72, 10, 0.4);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  animation: pulse 2s infinite;
  margin: 1rem;
}

.chatbot-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid white;
}

.chatbot-button:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(255, 72, 10, 0.6);
  animation: none;
}

.chatbot-button.minimized {
  width: 50px;
  height: 50px;
  animation: none;
}

.chatbot-button.minimized .chatbot-badge {
  display: none;
}

.chatbot-button.minimized svg {
  width: 24px;
  height: 24px;
}

.chatbot-panel {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 550px;
  max-height: calc(100vh - 180px);
  top: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(450px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.chatbot-panel.active {
  transform: translateX(0);
  opacity: 1;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 1.25rem;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chatbot-welcome {
  background: var(--light-color);
  padding: 1rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.chatbot-options-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.chatbot-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-option {
  background: white;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-size: 0.95rem;
  color: var(--dark-color);
  animation: slideIn 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.chatbot-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.chatbot-option:hover:not(:disabled)::before {
  transform: scaleY(1);
}

.chatbot-option:hover:not(:disabled) {
  border-color: var(--primary-color);
  background: linear-gradient(90deg, rgba(255, 72, 10, 0.08) 0%, rgba(255, 72, 10, 0.02) 100%);
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(255, 72, 10, 0.15);
}

.chatbot-option:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chatbot-message {
  padding: 0.875rem 1rem;
  border-radius: 12px;
  max-width: 85%;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message.user {
  background: var(--primary-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-message.bot {
  background: var(--light-color);
  color: var(--dark-color);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border-left: 3px solid var(--primary-color);
  line-height: 1.6;
}

.chatbot-message.bot strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Indicador de escritura */
.chatbot-typing-indicator {
  align-self: flex-start;
  padding: 0.875rem 1rem;
  background: var(--light-color);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  margin-bottom: 1rem;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingDot {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chatbot-footer {
  padding: 1rem;
  border-top: 1px solid var(--light-gray);
  border-radius: 0 0 16px 16px;
}

@media (max-width: 768px) {
  .chatbot-panel {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 80px;
    height: calc(100vh - 160px);
    max-height: calc(100vh - 160px);
  }
  
  .chatbot-button {
    width: 55px;
    height: 55px;
    margin: 0.75rem;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  /* Menú hamburguesa con fondo blanco (para resoluciones entre 768px y 991px) */
  .navbar-collapse {
    background-color: var(--white) !important;
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
  }
  
  .navbar-collapse.show {
    background-color: var(--white) !important;
  }
  
  .hero-title {
    font-size: 3.5rem;
    white-space: nowrap;
  }
  
  .hero-ph {
    font-size: 2.5rem;
    white-space: nowrap;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
  }
  
  .about {
    padding: 60px 0;
  }
  
  .services {
    padding: 60px 0;
  }
  
  .clients {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 60px 0;
  }
  
  .why-choose {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .navbar {
    height: 70px;
  }
  
  .navbar.scrolled {
    height: 60px;
  }
  
  .navbar.scrolled .navbar-brand img {
    height: 50px;
  }
  
  /* Menú hamburguesa con fondo blanco */
  .navbar-collapse {
    background-color: var(--white) !important;
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  
  .navbar-collapse.show {
    background-color: var(--white) !important;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--light-gray);
    min-height: 44px; /* Tamaño táctil mínimo */
    display: flex;
    align-items: center;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Botón "Ver presentación" en menú móvil */
  .navbar .d-flex.align-items-center.gap-3 {
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .hero {
    min-height: auto;
    padding: 80px 0 60px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-ph {
    font-size: 2.5rem;
    white-space: nowrap;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 0 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem !important;
  }
  
  /* Formularios en tablet */
  .form-control,
  .form-select {
    font-size: 16px;
  }
  
  /* Cards en dos columnas en tablet */
  .col-md-6 {
    margin-bottom: 1.5rem;
  }
  
  .whatsapp-button {
    width: 55px;
    height: 55px;
    bottom: 20px !important;
    right: 20px !important;
  }
  
  /* Chatbot optimizado para tablet */
  .chatbot-panel {
    width: calc(100vw - 40px);
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  /* Mobile First - Optimizaciones para pantallas pequeñas */
  body {
    padding-top: 70px;
    font-size: 16px; /* Tamaño mínimo recomendado para legibilidad */
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Navbar optimizado para móvil */
  .navbar-brand img {
    height: 50px;
    max-width: 150px;
  }
  
  /* Botones táctiles - mínimo 44x44px */
  .btn {
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    touch-action: manipulation; /* Elimina delay de 300ms en móvil */
  }
  
  .btn-lg {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
  }
  
  /* Botón "Ver presentación" en navbar móvil */
  .navbar .btn-primary {
    min-width: auto;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
  
  /* Hero section optimizado */
  .hero {
    min-height: auto;
    padding: 60px 0 40px;
  }
  
  .hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    white-space: nowrap;
  }
  
  .hero-ph {
    font-size: 2.25rem;
    display: inline;
    margin-left: 0.5rem;
    white-space: nowrap;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    padding: 0 1rem;
    max-width: 100%;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem !important;
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 100%;
  }
  
  /* Secciones con padding reducido */
  .about,
  .services,
  .clients,
  .contact-form,
  .why-choose,
  .stats {
    padding: 40px 0;
  }
  
  /* Cards y elementos */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  /* Formularios optimizados para móvil */
  .form-control,
  .form-select {
    font-size: 16px; /* Previene zoom en iOS */
    min-height: 44px;
    padding: 0.625rem 0.875rem;
  }
  
  textarea.form-control {
    min-height: 120px;
  }
  
  /* Imágenes responsive */
  .about-image img,
  .service-image img {
    width: 100%;
    height: auto;
  }
  
  /* Stats section */
  .stat-number {
    font-size: 2rem !important;
  }
  
  /* Social icons */
  .social-icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  
  .social-icon {
    width: 44px;
    height: 44px;
  }
  
  /* Footer optimizado */
  .footer {
    padding: 2rem 0 !important;
  }
  
  .footer .row {
    text-align: center;
  }
  
  /* Contact items */
  .contact-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-icon {
    margin: 0 auto 1rem;
  }
  
  /* Display utilities para móvil */
  .d-mobile-none {
    display: none !important;
  }
  
  /* Espaciado entre secciones */
  section {
    margin-bottom: 0;
  }
  
  /* Títulos responsive */
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
  
  h1, .h1 {
    font-size: 1.75rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
  }
  
  /* Gap reducido en móvil */
  .row.g-4 {
    --bs-gutter-y: 1.5rem;
    --bs-gutter-x: 1rem;
  }
  
  /* Clientes logos */
  .client-logo {
    height: 100px !important;
  }
  
  .client-logo img {
    max-height: 60px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 480px) {
  /* Pantallas muy pequeñas */
  .hero-title {
    font-size: 2.5rem;
    white-space: nowrap;
  }
  
  .hero-ph {
    font-size: 1.75rem;
    display: inline;
    margin-left: 0.5rem;
    white-space: nowrap;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 0 0.75rem;
  }
  
  .stat-number {
    font-size: 1.75rem !important;
  }
  
  .navbar-brand img {
    height: 45px;
    max-width: 130px;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Utilidades adicionales */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.object-fit-cover {
  object-fit: cover;
}

/* Estilos para búsqueda */
.search-results {
  border: 1px solid var(--light-gray) !important;
}

.search-result-item {
  transition: var(--transition);
}

.search-result-item:hover {
  background-color: var(--light-color) !important;
}

.search-result-item mark {
  background-color: rgba(255, 72, 10, 0.2) !important;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0;
}

#searchInput:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(255, 72, 10, 0.25);
}

/* Improved focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.nav-link:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

.social-icon:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Remove default focus outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

#searchButton:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}
