/* Solitude Website Custom Styles */

/* Base styles */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f8ff;
}

::-webkit-scrollbar-thumb {
  background: #4F9FD9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #20B2AA;
}

/* Hero section animations */
.hero-content {
  animation: fadeInUp 1s ease-out;
}

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

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(79, 159, 217, 0.1), 0 10px 10px -5px rgba(79, 159, 217, 0.04);
}

/* Button styles */
.btn-primary {
  background-color: #4F9FD9;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover {
  background-color: #20B2AA;
}

.btn-secondary {
  background-color: #9CAF88;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-secondary:hover {
  background-color: #7a8a6e;
}

.btn-outline {
  border: 2px solid #4F9FD9;
  color: #4F9FD9;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  background: transparent;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-outline:hover {
  background-color: #4F9FD9;
  color: white;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: #4F9FD9;
  box-shadow: 0 0 0 3px rgba(79, 159, 217, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s;
  resize: vertical;
  min-height: 8rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-textarea:focus {
  outline: none;
  border-color: #4F9FD9;
  box-shadow: 0 0 0 3px rgba(79, 159, 217, 0.1);
}

/* Section styles */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
  text-align: center;
}

/* Card styles */
.feature-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  height: 100%;
}

.service-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-left: 4px solid #4F9FD9;
}

/* Icon styles */
.icon-primary {
  color: #4F9FD9;
}

.icon-secondary {
  color: #20B2AA;
}

.icon-success {
  color: #9CAF88;
}

/* Typography */
.heading-primary {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .heading-primary {
    font-size: 3rem;
  }
}

@media (min-width: 1280px) {
  .heading-primary {
    font-size: 3.75rem;
  }
}

.heading-secondary {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .heading-secondary {
    font-size: 2.25rem;
  }
}

.text-lead {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
}

/* Background patterns */
.bg-pattern {
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(79, 159, 217, 0.1) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(32, 178, 170, 0.1) 2px, transparent 0);
  background-size: 100px 100px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 28rem;
  width: 100%;
  max-height: 24rem;
  overflow-y: auto;
}

/* Calendar styles */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.calendar-day {
  aspect-ratio: 1;
  background: white;
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar-day:hover {
  background: #f8f8ff;
}

.calendar-day.has-event {
  background: #dbeafe;
  border-color: #4F9FD9;
}

.calendar-day.today {
  background: #4F9FD9;
  color: white;
}

/* Timeline styles */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: #4F9FD9;
  border-radius: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 0.375rem;
  top: 1.25rem;
  width: 1px;
  height: calc(100% - 0.75rem);
  background: #e5e7eb;
}

.timeline-item:last-child::after {
  display: none;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .heading-primary {
    font-size: 1.875rem;
  }
  
  .heading-secondary {
    font-size: 1.5rem;
  }
  
  .btn-primary, .btn-secondary, .btn-outline {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #4F9FD9;
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
}

#back-to-top:hover {
  background: #20B2AA;
  transform: translateY(-2px);
}

/* Language selector */
.language-selector a {
  transition: all 0.2s ease;
}

.language-selector a:hover {
  color: #4F9FD9;
}

/* Utility classes */
.text-solitude-blue { color: #4F9FD9; }
.text-solitude-teal { color: #20B2AA; }
.text-solitude-sage { color: #9CAF88; }

.bg-solitude-blue { background-color: #4F9FD9; }
.bg-solitude-teal { background-color: #20B2AA; }
.bg-solitude-sage { background-color: #9CAF88; }
.bg-solitude-cream { background-color: #F8F8FF; }

.border-solitude-blue { border-color: #4F9FD9; }
.border-solitude-teal { border-color: #20B2AA; }
.border-solitude-sage { border-color: #9CAF88; }

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid #4F9FD9;
  outline-offset: 2px;
}

/* Custom focus for buttons */
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
  outline: 2px solid #4F9FD9;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}