/* General Setup & Variables */
:root {
  --brand-cream: #EFEBE5;
  --brand-dark: #1A1A1A;
  --brand-gray: #2E2E2E;
  --brand-gold: #C4A889;
  --font-sans: 'Montserrat', sans-serif;
  --font-cursive: 'Great Vibes', cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--brand-cream);
  color: var(--brand-dark);
  margin: 0;
}

.dark body {
  background-color: var(--brand-dark);
  color: var(--brand-cream);
}

/* Reusable Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}
@media (min-width: 768px) {
  .container { max-width: 768px; }
}
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}
@media (min-width: 1536px) {
  .container { max-width: 1536px; }
}


/* Typography */
.font-sans { font-family: var(--font-sans); }
.font-cursive { font-family: var(--font-cursive); }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-8xl { font-size: 6rem; }
.text-9xl { font-size: 8rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.leading-relaxed { line-height: 1.625; }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

.text-center { text-align: center; }

/* Colors */
.bg-brand-cream { background-color: var(--brand-cream); }
.text-brand-dark { color: var(--brand-dark); }
.dark .dark\:bg-brand-dark { background-color: var(--brand-dark); }
.dark .dark\:text-brand-cream { color: var(--brand-cream); }

.bg-brand-gray { background-color: var(--brand-gray); }
.dark .dark\:bg-black { background-color: #000; }

.bg-brand-gray\/10 { background-color: rgba(46, 46, 46, 0.1); }
.dark .dark\:bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); }

.text-brand-gold { color: var(--brand-gold); }
.border-brand-gold { border-color: var(--brand-gold); }
.border-brand-gold\/20 { border-color: rgba(196, 168, 137, 0.2); }
.border-brand-gold\/50 { border-color: rgba(196, 168, 137, 0.5); }
.hover\:text-brand-gold:hover { color: var(--brand-gold); }
.hover\:bg-brand-gold:hover { background-color: var(--brand-gold); }

.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.dark .dark\:text-gray-300 { color: #d1d5db; }
.dark .dark\:text-gray-400 { color: #9ca3af; }

.text-white { color: #fff; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

/* Layout & Sizing */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }


.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.w-full { width: 100%; }
.w-24 { width: 6rem; }
.h-1 { height: 0.25rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }

.min-h-screen { min-height: 100vh; }
.min-h-\[22rem\] { min-height: 22rem; }

.h-\[60vh\] { height: 60vh; }
.h-full { height: 100%; }

.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.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; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-4 { padding-left: 1rem; }


/* Positioning */
.sticky { position: sticky; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Effects & Transitions */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.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; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.hover\:opacity-80:hover { opacity: 0.8; }

.transform { transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-12 { transform: translateX(-3rem); }
.translate-x-12 { transform: translateX(3rem); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }


/* Borders */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-brand-gray { border-color: var(--brand-gray); }

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-bottom-width: 0px; }
.divide-brand-gold\/20 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(196, 168, 137, 0.2); }


/* Misc */
.hidden { display: none; }
.block { display: block; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --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); }
.focus\:ring-brand-gold:focus { --tw-ring-color: var(--brand-gold); }


/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    '0%': { opacity: '0' },
    '100%': { opacity: '1' },
}

/* Component Specific Styles */

/* Header */
header nav .nav-item {
  color: inherit;
  transition: color 300ms;
}
header nav .nav-item:hover {
  color: var(--brand-gold);
}
header nav .nav-item.active {
  color: var(--brand-gold);
}
.bg-brand-cream\/80 { background-color: rgba(239, 235, 229, 0.8); }
.dark .dark\:bg-brand-dark\/80 { background-color: rgba(26, 26, 26, 0.8); }
.hover\:bg-black\/10:hover { background-color: rgba(0,0,0,0.1); }
.dark .dark\:hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }


/* Footer */
.hover\:text-brand-dark:hover { color: var(--brand-dark); }
.dark .dark\:hover\:text-brand-dark:hover { color: var(--brand-dark); }

/* Buttons */
.hover\:text-brand-cream:hover { color: var(--brand-cream); }
.dark .dark\:hover\:text-brand-cream:hover { color: var(--brand-cream); }

/* Forms */
.form-container .thank-you-message {
    display: none;
}
.form-container.submitted .thank-you-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.form-container.submitted form {
    display: none;
}
.bg-green-100 { background-color: #d1fae5; }
.text-green-800 { color: #065f46; }
.dark .dark\:bg-green-900\/50 { background-color: rgba(5, 46, 22, 0.5); }
.dark .dark\:text-green-200 { color: #a7f3d0; }
.bg-green-800\/50 { background-color: rgba(22, 101, 52, 0.5); }

/* Prose for legal pages */
.prose {
    line-height: 1.75;
}
.prose h2 {
    font-family: var(--font-sans);
    color: var(--brand-dark);
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}
.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}
.prose a {
    color: var(--brand-gold);
    text-decoration: none;
}
.prose a:hover {
    text-decoration: underline;
}
.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}
.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.dark .prose {
    color: #d1d5db;
}
.dark .prose h2 {
    color: var(--brand-cream);
}
.dark .prose a {
    color: var(--brand-gold);
}


/* Responsive Styles */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:h-\[80vh\] { height: 80vh; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-8xl { font-size: 6rem; }
  .md\:scale-105 { transform: scale(1.05); }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
  .md\:-translate-x-12 { transform: translateX(-3rem); }
  .md\:translate-x-12 { transform: translateX(3rem); }
}

@media (min-width: 1024px) {
  .lg\:text-9xl { font-size: 8rem; }
}

