@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Base styles with enhanced accessibility */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #2D2D2D;
  background-color: #FEFEFE;
}

/* Enhanced button accessibility */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: -moz-fit-content;
  min-width: fit-content;
}

.btn:focus {
  outline: 2px solid #DAA520;
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #8B4513;
  border: 2px solid #8B4513;
}

.btn-secondary:hover {
  background: #8B4513;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Form accessibility enhancements */

input, textarea, select {
  border: 2px solid #D1D5DB;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #FFFFFF;
  color: #2D2D2D;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #DAA520;
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

/* Cookie consent banner - consistent across all pages */

.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: rgba(45, 45, 45, 0.98);
  color: #FFFFFF;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-banner h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #DAA520;
}

.cookie-consent-banner p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #F0F0F0;
}

.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-consent-banner button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 36px;
}

.cookie-consent-banner .accept-all {
  background: #DAA520;
  color: #FFFFFF;
}

.cookie-consent-banner .accept-all:hover {
  background: #B8941A;
}

.cookie-consent-banner .decline-all {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid #666;
}

.cookie-consent-banner .decline-all:hover {
  background: #666;
}

/* Responsive design */

@media (max-width: 768px) {
  .cookie-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-consent-banner button {
    width: 100%;
  }
}

/* Navigation enhancements */

nav {
  background: rgba(254, 254, 254, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.nav-link {
  color: #2D2D2D;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px;
  display: block;
}

.nav-link:hover {
  background: rgba(218, 165, 32, 0.1);
  color: #8B4513;
}

.nav-link.active {
  background: #8B4513;
  color: #FFFFFF;
}

/* Hero section styling */

.hero-overlay {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.8) 0%, rgba(160, 82, 45, 0.6) 100%);
}

/* Card styling */

.service-card, .team-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 69, 19, 0.1);
}

.service-card:hover, .team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(139, 69, 19, 0.15);
}

/* Enhanced text contrast */

.text-dark {
  color: #1F2937;
}

.text-muted {
  color: #4B5563;
}

/* Section spacing optimization */

.section-spacing {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 2.5rem 0;
  }
}

/* Logo styling */

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #8B4513;
  text-decoration: none;
  font-size: 1.8rem;
}

.logo-text:hover {
  color: #DAA520;
}

/* Footer styling */

footer {
  background: linear-gradient(135deg, #2D2D2D 0%, #1F2937 100%);
  color: #F0F0F0;
}

/* Accessibility improvements */

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #8B4513;
  color: #FFFFFF;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

/* Loading animation */

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

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