/* OSF Realty Custom Styles - Knight Frank Inspired */

/* Base Typography */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #2d3748;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Premium Transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Link Hover Effects */
a {
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

/* Button Hover Effects */
button, .button {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
}

button:hover, .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Inputs */
input, select, textarea {
  font-family: 'Inter', system-ui, sans-serif;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #1a2332;
  box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.1);
}

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

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image Overlay Effects */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
  opacity: 1;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading States */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Success/Error Messages */
.form-message {
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
  font-weight: 500;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Mobile Menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.active {
  max-height: 500px;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Print Styles */
@media print {
  nav, footer, .no-print {
    display: none;
  }
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Selection Color */
::selection {
  background-color: #c5a572;
  color: white;
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid #c5a572;
  outline-offset: 2px;
}

/* Loader Animation */
.loader {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #1a2332;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

::-webkit-scrollbar-thumb {
  background: #1a2332;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c5a572;
}
