/**
 * VAMM Luxury Theme - Heritage Editorial Design System
 * Recanto dos Moinhos - Boutique Hotel
 *
 * Sistema de Design: Heritage Editorial
 * - Primary: Deep Burgundy (#3c0007) - Autoridade e romance
 * - Secondary: Heritage Gold (#7a581f) - Luxo e tradição
 * - Tertiary: Forest Black (#0c1c13) - Contraste profundo
 * - Surface: Cream Paper (#fdf9ef) - Base acolhedora
 */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    line-height: inherit;
    background-color: #fdf9ef;
    color: #3c0007;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: Newsreader, Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
    color: #3c0007;
}

h1 { font-size: 3.75rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.875rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Font Families */
.font-headline { font-family: Newsreader, Georgia, serif; }
.font-body { font-family: Manrope, system-ui, sans-serif; }
.font-label { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Font Sizes */
.text-9px { font-size: 0.5625rem; }
.text-10px { font-size: 0.625rem; }
.text-11px { font-size: 0.6875rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.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-7xl { font-size: 4.5rem; }
.text-8xl { font-size: 6rem; }

/* Font Weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Letter Spacing */
.tracking-tighter { letter-spacing: -0.02em; }
.tracking-tight { letter-spacing: -0.01em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.02em; }
.tracking-widest { letter-spacing: 0.04em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-\[0\.4em\] { letter-spacing: 0.4em; }

/* Line Heights */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }

/* Text Styles */
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* Text Colors */
.text-primary { color: #3c0007; }
.text-secondary { color: #7a581f; }
.text-tertiary { color: #0c1c13; }
.text-on-primary { color: #ffffff; }
.text-on-secondary { color: #ffffff; }
.text-on-surface { color: #1c1c16; }
.text-on-surface-variant { color: #564241; }
.text-white { color: #ffffff; }

/* Text Opacity */
.text-primary\/70 { color: rgba(60, 0, 7, 0.7); }
.text-primary\/60 { color: rgba(60, 0, 7, 0.6); }
.text-primary\/50 { color: rgba(60, 0, 7, 0.5); }
.text-primary\/40 { color: rgba(60, 0, 7, 0.4); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-secondary\/70 { color: rgba(122, 88, 31, 0.7); }
.text-secondary\/40 { color: rgba(122, 88, 31, 0.4); }
.text-on-surface-variant\/60 { color: rgba(86, 66, 65, 0.6); }
.text-on-surface-variant\/40 { color: rgba(86, 66, 65, 0.4); }
.text-on-surface-variant\/30 { color: rgba(86, 66, 65, 0.3); }

/* ============================================
   COLORS - Backgrounds
   ============================================ */
.bg-primary { background-color: #3c0007; }
.bg-secondary { background-color: #7a581f; }
.bg-tertiary { background-color: #0c1c13; }
.bg-surface { background-color: #fdf9ef; }
.bg-surface-variant { background-color: #e6e2d8; }
.bg-surface-container { background-color: #f1eee4; }
.bg-surface-container-low { background-color: #f7f3e9; }
.bg-surface-container-low\/50 { background-color: rgba(247, 243, 233, 0.5); }
.bg-white { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }

/* Background Opacity */
.bg-primary\/20 { background-color: rgba(60, 0, 7, 0.2); }
.bg-primary\/5 { background-color: rgba(60, 0, 7, 0.05); }
.bg-on-surface-variant\/10 { background-color: rgba(86, 66, 65, 0.1); }

/* Gradient */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-primary\/40 { --tw-gradient-from: rgba(60, 0, 7, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(60, 0, 7, 0)); }
.to-transparent { --tw-gradient-to: transparent; }

/* ============================================
   BORDERS
   ============================================ */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-t-2 { border-top-width: 2px; }
.border-l-2 { border-left-width: 2px; }
.border-none { border-style: none; }

/* Border Colors */
.border-primary\/5 { border-color: rgba(60, 0, 7, 0.05); }
.border-secondary\/10 { border-color: rgba(122, 88, 31, 0.1); }
.border-secondary\/30 { border-color: rgba(122, 88, 31, 0.3); }
.border-secondary\/40 { border-color: rgba(122, 88, 31, 0.4); }
.border-outline-variant\/20 { border-color: rgba(220, 192, 191, 0.2); }
.border-outline-variant\/40 { border-color: rgba(220, 192, 191, 0.4); }
.border-primary\/5 { border-color: rgba(60, 0, 7, 0.05); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-error { border-color: #ba1a1a; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-none { border-radius: 0; }

/* ============================================
   SPACING - Margin
   ============================================ */
.m-0 { margin: 0; }
.m-4 { margin: 1rem; }
.m-8 { margin: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mb-32 { margin-bottom: 8rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }
.mt-32 { margin-top: 8rem; }
.mt-40 { margin-top: 10rem; }
.mt-64 { margin-top: 16rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-auto { margin-left: auto; }

.mr-auto { margin-right: auto; }

/* ============================================
   SPACING - Padding
   ============================================ */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.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; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.px-16 { padding-left: 4rem; padding-right: 4rem; }

.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-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-40 { padding-top: 10rem; padding-bottom: 10rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-40 { padding-bottom: 10rem; }

.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pt-36 { padding-top: 9rem; }
.pt-40 { padding-top: 10rem; }
.pt-64 { padding-top: 16rem; }

/* ============================================
   LAYOUT - Display
   ============================================ */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex Direction */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

/* Flex Wrap */
.flex-wrap { flex-wrap: wrap; }

/* Align Items */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }

/* Justify Content */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-24 { gap: 6rem; }

/* Grid Template Columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ============================================
   POSITIONING
   ============================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-1\/2 { left: 50%; }
.right-4 { right: 1rem; }
.-right-8 { right: -2rem; }
.-bottom-8 { bottom: -2rem; }

.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-y-1\/2 { transform: translateY(50%); }
.translate-y-1\/4 { transform: translateY(25%); }

/* Z-Index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* ============================================
   SIZING
   ============================================ */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-\[500px\] { width: 500px; }

.h-full { height: 100%; }
.h-5 { height: 1.25rem; }
.h-56 { height: 14rem; }
.h-screen { height: 100vh; }
.h-24 { height: 6rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }

.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }
.max-w-none { max-width: none; }

.min-h-screen { min-height: 100vh; }

/* ============================================
   ASPECT RATIO & OBJECT FIT
   ============================================ */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ============================================
   OVERFLOW
   ============================================ */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* ============================================
   SHADOWS
   ============================================ */
.shadow { box-shadow: 0 1px 3px rgba(28, 28, 22, 0.06), 0 1px 2px rgba(28, 28, 22, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px rgba(28, 28, 22, 0.04); }
.shadow-md { box-shadow: 0 4px 6px rgba(28, 28, 22, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px rgba(28, 28, 22, 0.06); }
.shadow-xl { box-shadow: 0 20px 25px rgba(28, 28, 22, 0.06); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(28, 28, 22, 0.1); }
.shadow-editorial { box-shadow: 0px 20px 50px rgba(28, 28, 22, 0.06); }
.shadow-editorial-lg { box-shadow: 0px 30px 80px rgba(28, 28, 22, 0.08); }
.shadow-primary\/20 { box-shadow: 0 25px 50px rgba(60, 0, 7, 0.2); }

/* ============================================
   BACKDROP FILTERS
   ============================================ */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-brightness-75 { backdrop-filter: brightness(0.75); }

/* ============================================
   EFFECTS
   ============================================ */
.grayscale { filter: grayscale(100%); }
.grayscale-\[20\%\] { filter: grayscale(20%); }
.grayscale-\[30\%\] { filter: grayscale(30%); }
.grayscale-0 { filter: grayscale(0%); }

.opacity-40 { opacity: 0.4; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }
.opacity-0 { opacity: 0; }

/* Selection */
::selection { background-color: rgba(122, 88, 31, 0.2); }

/* ============================================
   TRANSITIONS & ANIMATIONS
   ============================================ */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }

/* Hover States */
.hover\:text-secondary:hover { color: #7a581f; }
.hover\:text-primary:hover { color: #3c0007; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:bg-secondary:hover { background-color: #7a581f; }
.hover\:bg-primary:hover { background-color: #3c0007; }
.hover\:bg-primary\/95:hover { background-color: rgba(60, 0, 7, 0.95); }
.hover\:border-secondary:hover { border-color: #7a581f; }
.hover\:border-white:hover { border-color: #ffffff; }
.hover\:shadow-primary\/20:hover { box-shadow: 0 25px 50px rgba(60, 0, 7, 0.2); }

/* Focus States */
.focus\:ring-0:focus { --tw-ring-offset-shadow: 0; --tw-ring-shadow: 0 0 0; box-shadow: none; }
.focus\:ring-1: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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); }
.focus\:ring-secondary:focus { --tw-ring-color: #7a581f; }
.focus\:border-secondary:focus { border-color: #7a581f; }

/* Group Hover */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:grayscale-0 { filter: grayscale(0%); }
.group:hover .group-hover\:border-white { border-color: #ffffff; }
.group:hover .group-hover\:text-white { color: #ffffff; }
.group:hover .group-hover\:rotate-12 { transform: rotate(12deg); }
.group:hover .group-hover\:-rotate-12 { transform: rotate(-12deg); }
.group:hover .group-hover\:bg-transparent { background-color: transparent; }
.group:focus-within .group-focus-within\:text-secondary { color: #7a581f; }

/* Active States */
.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-\[0\.99\]:active { transform: scale(0.99); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes drift {
    0% { transform: translateY(-10vh) translateX(0) rotate(0deg); }
    100% { transform: translateY(110vh) translateX(100vw) rotate(360deg); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin { animation: spin 1s linear infinite; }
.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }

/* Floating Petals Animation */
.floating-petal {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    opacity: 0.4;
    animation: drift 15s linear infinite;
}

.petal-1 { left: 10%; animation-duration: 18s; animation-delay: 0s; }
.petal-2 { left: 30%; animation-duration: 22s; animation-delay: -5s; }
.petal-3 { left: 60%; animation-duration: 20s; animation-delay: -2s; }
.petal-4 { left: 85%; animation-duration: 25s; animation-delay: -10s; }

/* ============================================
   PARALLAX EFFECTS
   ============================================ */
.perspective-container {
    perspective: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
}

.parallax-bg {
    transform: translateZ(-10px) scale(2);
}

.parallax-mid {
    transform: translateZ(-5px) scale(1.5);
}

/* ============================================
   EDITORIAL ELEMENTS
   ============================================ */
.editorial-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.3;
}

/* ============================================
   MATERIAL SYMBOLS
   ============================================ */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ============================================
   FORMS
   ============================================ */
input, button, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    margin: 0;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile First - Default styles above, then scale up */

/* md: 768px and up */
@media (min-width: 768px) {
    .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-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:flex-col { flex-direction: column; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .md\:px-16 { padding-left: 4rem; padding-right: 4rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:text-7xl { font-size: 4.5rem; }
    .md\:text-8xl { font-size: 6rem; }
    .md\:mt-16 { margin-top: 4rem; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
}

/* lg: 1024px and up */
@media (min-width: 1024px) {
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:pl-12 { padding-left: 3rem; }
    .lg\:gap-24 { gap: 6rem; }
}

/* xl: 1280px and up */
@media (min-width: 1280px) {
    .xl\:gap-24 { gap: 6rem; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   ERROR STATES
   ============================================ */
.bg-error-container { background-color: #ffdad6; }
.text-error { color: #ba1a1a; }
.border-error { border-color: #ba1a1a; }

/* ============================================
   ADDITIONAL UTILITIES
   ============================================ */
.space-y-3 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(1rem * var(--tw-space-y-reverse)); }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(1.25rem * var(--tw-space-y-reverse)); }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(2rem * var(--tw-space-y-reverse)); }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(3rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(3rem * var(--tw-space-y-reverse)); }
.space-y-16 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(4rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(4rem * var(--tw-space-y-reverse)); }
.space-y-20 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(5rem * var(--tw-space-y-reverse)); }

.space-x-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(1rem * var(--tw-space-x-reverse)); margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))); }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0 { flex-shrink: 0; }

.w-28 { width: 7rem; }
.h-28 { height: 7rem; }

/* Placeholder color */
::placeholder { color: rgba(86, 66, 65, 0.3); }

/* Disabled state */
button:disabled, input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   ADDITIONAL COLORS
   ============================================ */
.bg-on-secondary-container { background-color: #79571e; }
.text-on-secondary-container { color: #79571e; }
.bg-primary-container { background-color: #5e0b15; }

/* ============================================
   CONTAINER QUERIES SUPPORT
   ============================================ */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

@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; }
}

/* ============================================
   SCROLLBAR CUSTOMIZATION
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #897171;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3c0007;
}
