/* ==========================================================================
   FRAMA NATURE ADVENTURE - BASE & RESET STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--sand-50);
  color: var(--charcoal-800);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* High-Definition & Retina Image Optimization */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  content-visibility: auto;
}

/* Hardware Acceleration Helper for 60/120fps Smooth Animations */
.gpu-smooth, .card-media, .stay-card, .activity-card, .event-card, .btn {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--forest-950);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }

p {
  color: var(--charcoal-700);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 350;
  line-height: 1.75;
}

p.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--forest-800);
}

.text-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.section-padding-sm {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clay-600);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--clay-500);
  opacity: 0.7;
}

.section-title {
  margin-bottom: 1.25rem;
  color: var(--forest-900);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--charcoal-500);
  font-weight: 350;
  margin-bottom: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-forest {
  background-color: var(--forest-100);
  color: var(--forest-800);
  border: 1px solid rgba(24, 51, 35, 0.15);
}

.badge-clay {
  background-color: var(--clay-100);
  color: var(--clay-700);
  border: 1px solid rgba(196, 104, 73, 0.2);
}

.badge-gold {
  background-color: rgba(212, 175, 55, 0.15);
  color: #8c6e14;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-success {
  background-color: #e6f7ec;
  color: #1b7a42;
  border: 1px solid #b7e8c6;
}

.badge-warning {
  background-color: #fef7e6;
  color: #b57a05;
  border: 1px solid #f9dfa0;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-900);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background-color: #ffffff;
  border: 1.5px solid var(--sand-300);
  border-radius: var(--radius-md);
  color: var(--charcoal-900);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3.5px rgba(47, 93, 68, 0.15);
}

/* Custom Styled Select Lists */
.form-select {
  width: 100%;
  padding: 0.85rem 2.85rem 0.85rem 1.15rem;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231b4332' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 1.1rem;
  border: 1.5px solid var(--sand-300);
  border-radius: var(--radius-md);
  color: var(--forest-950);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), background-image var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.form-select:hover {
  border-color: var(--forest-600);
  background-color: #faf9f5;
  box-shadow: 0 4px 12px rgba(16, 59, 41, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-select:focus {
  outline: none;
  border-color: var(--forest-700);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.16), 0 4px 16px rgba(0, 0, 0, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c46849' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-select:disabled {
  background-color: var(--sand-200);
  color: var(--charcoal-400);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Custom Optgroup and Option styling inside select */
.form-select optgroup {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--forest-900);
  background-color: var(--sand-100);
  padding: 0.5rem;
}

.form-select option {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal-900);
  background-color: #ffffff;
  padding: 0.6rem 0.85rem;
}

/* Select Size Variants */
.form-select-sm {
  padding: 0.5rem 2.25rem 0.5rem 0.85rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  background-position: right 0.85rem center;
  background-size: 0.95rem;
}

.form-select-lg {
  padding: 1rem 3.25rem 1rem 1.35rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  background-position: right 1.35rem center;
  background-size: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Flash Messages */
.messages-container {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-deep);
  animation: slideInRight 0.35s ease-out;
}

.alert-success {
  background-color: #102417;
  color: #ffffff;
  border-left: 4px solid var(--gold-primary);
}

.alert-error {
  background-color: #7a2214;
  color: #ffffff;
  border-left: 4px solid #ff8573;
}

.alert-info {
  background-color: var(--forest-800);
  color: #ffffff;
  border-left: 4px solid var(--clay-400);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
