/* Tailwind CSS Reset & Base Styles */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  line-height: inherit;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, [type='button'], [type='reset'], [type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

button, [role="button"] {
  cursor: pointer;
}

/* Custom Color Variables */
:root {
  --primary: #c19b5c;
  --background-light: #F4EFE7;
  --background-dark: #1e1a14;
  --text-light: #2F2F2F;
  --text-dark: #EAE8E3;
  --card-light: #FFFFFF;
  --card-dark: #2F2F2F;
  --border-light: #e3e1de;
  --border-dark: #4a4845;
}

/* Font Families */
.font-display {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.font-brand {
  font-family: "Playfair Display", serif;
}

/* Background Colors */
.bg-background-light {
  background-color: var(--background-light);
}

.bg-card-light {
  background-color: var(--card-light);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-green-500 {
  background-color: rgb(34 197 94);
}

.bg-white {
  background-color: #ffffff;
}

.bg-blue-50 {
  background-color: rgb(239 246 255);
}

.bg-green-50 {
  background-color: rgb(240 253 244);
}

.bg-orange-50 {
  background-color: rgb(255 247 237);
}

.bg-orange-100 {
  background-color: rgb(255 237 213);
}

.bg-gray-100 {
  background-color: rgb(243 244 246);
}

.bg-gray-800 {
  background-color: rgb(31 41 55);
}

.bg-opacity-90:hover {
  --tw-bg-opacity: 0.9;
}

/* Text Colors */
.text-text-light {
  color: var(--text-light);
}

.text-white {
  color: #ffffff;
}

.text-red-500 {
  color: rgb(239 68 68);
}

.text-blue-600 {
  color: rgb(37 99 235);
}

.text-green-600 {
  color: rgb(22 163 74);
}

.text-orange-600 {
  color: rgb(234 88 12);
}

.text-orange-700 {
  color: rgb(194 65 12);
}

.text-gray-400 {
  color: rgb(156 163 175);
}

.text-gray-600 {
  color: rgb(75 85 99);
}

.text-primary {
  color: var(--primary);
}

/* Border Colors */
.border-border-light {
  border-color: var(--border-light);
}

.border-gray-300 {
  border-color: rgb(209 213 219);
}

.border-orange-200 {
  border-color: rgb(254 215 170);
}

.border-orange-300 {
  border-color: rgb(253 186 116);
}

.border-orange-700 {
  border-color: rgb(194 65 12);
}

.border-orange-800 {
  border-color: rgb(154 52 18);
}

.border-white\/30 {
  border-color: rgb(255 255 255 / 0.3);
}

/* Ring Colors */
.ring-border-light {
  --tw-ring-color: var(--border-light);
}

.ring-primary {
  --tw-ring-color: var(--primary);
}

.focus\:ring-primary:focus {
  --tw-ring-color: var(--primary);
}

.focus\:ring-orange-500:focus {
  --tw-ring-color: rgb(249 115 22);
}

/* Dark Mode Styles */
.dark .dark\:bg-background-dark {
  background-color: var(--background-dark);
}

.dark .dark\:bg-card-dark {
  background-color: var(--card-dark);
}

.dark .dark\:text-text-dark {
  color: var(--text-dark);
}

.dark .dark\:text-gray-400 {
  color: rgb(156 163 175);
}

.dark .dark\:text-orange-300 {
  color: rgb(253 186 116);
}

.dark .dark\:text-orange-400 {
  color: rgb(251 146 60);
}

.dark .dark\:border-border-dark {
  border-color: var(--border-dark);
}

.dark .dark\:border-orange-700 {
  border-color: rgb(194 65 12);
}

.dark .dark\:bg-orange-900\/20 {
  background-color: rgb(124 45 18 / 0.2);
}

.dark .dark\:bg-orange-900\/30 {
  background-color: rgb(124 45 18 / 0.3);
}

.dark .dark\:bg-gray-800 {
  background-color: rgb(31 41 55);
}

.dark .dark\:ring-border-dark {
  --tw-ring-color: var(--border-dark);
}

.dark .dark\:hover\:bg-gray-800:hover {
  background-color: rgb(31 41 55);
}

.dark .dark\:hover\:bg-background-dark:hover {
  background-color: var(--background-dark);
}

.dark .dark\:hover\:bg-orange-900\/30:hover {
  background-color: rgb(124 45 18 / 0.3);
}

/* Layout & Flexbox */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.hidden {
  display: none;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1 1 0%;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-x-2 {
  column-gap: 0.5rem;
}

.gap-x-4 {
  column-gap: 1rem;
}

.gap-x-6 {
  column-gap: 1.5rem;
}

.gap-y-2 {
  row-gap: 0.5rem;
}

.gap-y-6 {
  row-gap: 1.5rem;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Spacing */
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem;
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.75rem;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.25rem;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 2rem;
}

/* Margins */
.m-0 {
  margin: 0;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.ml-6 {
  margin-left: 1.5rem;
}

/* Padding */
.p-0 {
  padding: 0;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pr-3 {
  padding-right: 0.75rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

/* Sizing */
.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.h-10 {
  height: 2.5rem;
}

.w-10 {
  width: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.w-12 {
  width: 3rem;
}

.w-16 {
  width: 4rem;
}

.w-20 {
  width: 5rem;
}

.h-24 {
  height: 6rem;
}

.h-28 {
  height: 7rem;
}

.h-32 {
  height: 8rem;
}

.w-auto {
  width: auto;
}

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.min-h-screen {
  min-height: 100vh;
}

/* Position */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.top-0 {
  top: 0;
}

.top-4 {
  top: 1rem;
}

.top-8 {
  top: 2rem;
}

.right-4 {
  right: 1rem;
}

.left-1\/2 {
  left: 50%;
}

.z-50 {
  z-index: 50;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-x-1\/2 {
  --tw-translate-x: -50%;
}

/* Border */
.border {
  border-width: 1px;
}

.border-0 {
  border-width: 0;
}

.border-t {
  border-top-width: 1px;
}

.border-l-4 {
  border-left-width: 4px;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 1rem;
}

.rounded-xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-r-lg {
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.rounded-DEFAULT {
  border-radius: 0.75rem;
}

/* Shadow */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Ring */
.ring-1 {
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  --tw-ring-opacity: 1;
}

.ring-inset {
  --tw-ring-inset: inset;
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-\[10px\] {
  font-size: 10px;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.leading-tight {
  line-height: 1.25;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.text-center {
  text-align: center;
}

/* Opacity */
.opacity-90 {
  opacity: 0.9;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

/* Transitions */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Hover States */
.hover\:bg-gray-100:hover {
  background-color: rgb(243 244 246);
}

.hover\:bg-blue-50:hover {
  background-color: rgb(239 246 255);
}

.hover\:bg-green-50:hover {
  background-color: rgb(240 253 244);
}

.hover\:bg-orange-100:hover {
  background-color: rgb(255 237 213);
}

.hover\:bg-background-light:hover {
  background-color: var(--background-light);
}

/* Utility Classes */
.block {
  display: block;
}

.object-contain {
  object-fit: contain;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:h-28 {
    height: 7rem;
  }

  .sm\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .sm\:p-8 {
    padding: 2rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-\[1fr_auto\] {
    grid-template-columns: 1fr auto;
  }

  .md\:h-32 {
    height: 8rem;
  }

  .md\:w-12 {
    width: 3rem;
  }

  .md\:h-12 {
    height: 3rem;
  }

  .md\:h-5 {
    height: 1.25rem;
  }

  .md\:w-5 {
    width: 1.25rem;
  }

  .md\:w-20 {
    width: 5rem;
  }

  .md\:gap-x-4 {
    column-gap: 1rem;
  }

  .md\:gap-2 {
    gap: 0.5rem;
  }

  .md\:space-y-2 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.5rem;
  }

  .md\:text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .md\:justify-end {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Form Input Styles */
input[type="text"],
input[type="email"],
textarea,
select {
  appearance: none;
  background-color: transparent;
}

input[type="radio"],
input[type="checkbox"] {
  appearance: none;
  padding: 0;
  color-adjust: exact;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  user-select: none;
  flex-shrink: 0;
  border-radius: 0.25rem;
  border-width: 1px;
  border-color: #d1d5db;
}

input[type="radio"] {
  border-radius: 100%;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: var(--primary);
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

/* Primary Color for Inputs */
.text-primary {
  color: var(--primary);
}

input[type="radio"].text-primary,
input[type="checkbox"].text-primary {
  color: var(--primary);
}

input[type="checkbox"].text-orange-500 {
  color: rgb(249 115 22);
}
