/*
 * Global CSS File
 * Contains global styles and utility classes used across the site
 */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&display=swap");

/* Base styles */
body {
  font-family: 'Raleway', sans-serif;
  color: #333;
  line-height: 1.6;
}

.container {
  padding: 2rem 1rem;
}

/* Color utilities */
.text-blue {
  color: #023e8a !important;
}

.text-primary {
  color: #0056b3 !important;
}

.bg-blue {
  background-color: #023e8a !important;
}

.bg-light-gray {
  background-color: #f8f9fa !important;
}

/* Button styles */
.btn-blue {
  background-color: #023e8a;
  color: #ffffff;
}

.btn-blue:hover,
.btn-blue:active {
  background-color: #063970;
  color: #ffffff;
}

.button-shadow {
  box-shadow: -4px 4px 0 #b2a5b9;
  transition: all 0.3s ease;
}

.button-shadow:hover {
  box-shadow: none;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Spacing utilities */
.mt-6 {
  margin-top: 4rem !important;
}

.mb-6 {
  margin-bottom: 4rem !important;
}

.py-6 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* Responsive utilities */
@media (max-width: 767.98px) {
  .text-center-sm {
    text-align: center !important;
  }
  
  .mt-sm-4 {
    margin-top: 1.5rem !important;
  }
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* Hover effects */
.custom-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-hover:hover {
  transform: scale(1.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}




/* Fix custom hover effect for mobile */
@media (max-width: 767.98px) {
  .custom-hover:hover {
    transform: scale(1.2);
  }
}

/* Budget calculator button and sidebar */
.budgetproposal-button {
  position: fixed;
  bottom: 50%;
  right: -70px;
  transform: rotate(90deg);
  z-index: 1000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: right 0.3s;
}

.sidebar {
  position: fixed;
  bottom: 50%;
  right: -400px;
  width: 400px;
  height: auto;
  transform: translateY(50%);
  transition: right 0.3s;
  padding: 20px;
  z-index: 999 !important;
  border-radius: 4px;
}

.budgetproposal-button:hover + .sidebar,
.sidebar:hover {
  right: 0;
}

/* Text utilities */
.text-small {
  font-size: 0.7rem;
}

/* Height utilities */
.vh-30 {
  min-height: 30vh;
}

.vh-40 {
  min-height: 41.5vh;
}

.vh-50 {
  min-height: 50vh;
}

.vh-70 {
  min-height: 90vh;
  z-index: 1;
  position: relative;
  overflow: hidden;
}

/* Typing animation */
.typing-container {
  display: inline-block;
  border-right: 2px solid #333333;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #333333;
  }
}