/* Purecrest Hospitality - Custom Styles */

/* CSS Variables */
:root {
  --navy: #0B2F5B;
  --emerald: #1F6E4A;
  --emerald-light: #2B7A57;
  --emerald-dark: #164d33;
  --emerald-50: #DCEFE7;
}

/* Fonts */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--emerald);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 2px solid var(--emerald);
  text-decoration: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
  background-color: var(--emerald-dark);
  border-color: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(31, 110, 74, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: var(--navy);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 2px solid #e5e7eb;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 2px solid rgba(255,255,255,0.4);
  text-decoration: none;
  cursor: pointer;
}

.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

/* Section Headings */
.section-label {
  display: inline-block;
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-align: center;
}

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

.section-divider {
  width: 3rem;
  height: 0.25rem;
  background: var(--emerald);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Service Cards */
.service-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--emerald);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--emerald);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--emerald-50);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}

.service-card:hover .service-card-icon {
  background: var(--emerald);
}

/* Mini service cards */
.mini-service-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.mini-service-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 6px 20px rgba(31, 110, 74, 0.1);
  transform: translateY(-2px);
}

.mini-service-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--emerald-50);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s;
}

.mini-service-card:hover .mini-service-icon {
  background: var(--emerald);
}

/* Detail service cards (services page) */
.detail-service-card {
  display: block;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.detail-service-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.detail-service-icon {
  width: 4rem;
  height: 4rem;
  background: var(--emerald-50);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.detail-service-card:hover .detail-service-icon {
  background: var(--emerald);
}

/* Step cards */
.step-card {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.step-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.08;
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  background: var(--emerald-50);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-arrow {
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Value cards */
.value-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.value-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: var(--emerald);
}

.value-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--emerald-50);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* Form Elements */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(31, 110, 74, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

select.form-input {
  cursor: pointer;
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fadein {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slidein {
  animation: slideIn 0.7s ease forwards;
}

.animate-fadein-delay {
  animation: fadeIn 0.6s ease 0.3s both;
}

.animate-fadein-delay2 {
  animation: fadeIn 0.6s ease 0.5s both;
}

/* Header scroll effect */
#main-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Nav active state */
.nav-link.active {
  color: var(--navy);
  font-weight: 600;
}

/* Success / Error messages */
.alert-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
}

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

/* Text colors */
.text-navy { color: var(--navy); }
.text-emerald { color: var(--emerald); }
.bg-navy { background-color: var(--navy); }
.bg-emerald { background-color: var(--emerald); }
.bg-emerald-light { background-color: var(--emerald-light); }
.border-emerald { border-color: var(--emerald); }

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Hover transitions */
a {
  transition: color 0.2s, opacity 0.2s;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--emerald);
  border-radius: 3px;
}

/* Loading state for buttons */
.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Pulse animation for map dots */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-8px) translateX(-50%); }
}

.animate-bounce {
  animation: bounce 1.5s infinite;
}
