/* Enhanced Beauty by Cathyna - Custom Styles */

/* Custom properties for design system consistency */
:root {
    --color-forest-50: #f0f7f0;
    --color-forest-100: #d9ecd9;
    --color-forest-200: #b8dbb8;
    --color-forest-300: #8ec48e;
    --color-forest-400: #5fa85f;
    --color-forest-500: #3d8a3d;
    --color-forest-600: #2d6e2d;
    --color-forest-700: #245724;
    --color-forest-800: #1e461e;
    --color-forest-900: #183818;
    --color-forest-950: #0c1e0c;
    
    --color-cream-50: #fefdf8;
    --color-cream-100: #fdf9ee;
    --color-cream-200: #faf3d8;
    --color-cream-300: #f5e9b8;
    --color-cream-400: #eed98a;
    --color-cream-500: #e0c256;
    
    --color-warm-50: #fefaf6;
    --color-warm-100: #fdf4ec;
    --color-warm-400: #eda978;
    --color-warm-500: #e07840;
    --color-warm-600: #c85428;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Nunito', system-ui, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: #1f2937;
    background-color: var(--color-cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* Smooth transitions */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
a:focus-visible, 
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-forest-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility classes */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section padding */
section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 8rem 0;
    }
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-forest-600);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-forest-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-forest-600);
    border: 2px solid var(--color-forest-600);
}

.btn-secondary:hover {
    background-color: var(--color-forest-600);
    color: white;
}

.btn-cream {
    background-color: var(--color-cream-400);
    color: var(--color-forest-900);
}

.btn-cream:hover {
    background-color: var(--color-cream-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Card styles */
.card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-forest-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Input styles */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: var(--color-cream-50);
    transition: all 0.3s ease;
}

.input:focus {
    border-color: var(--color-forest-500);
    box-shadow: 0 0 0 3px rgba(45, 110, 45, 0.2);
    outline: none;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-forest-100);
    color: var(--color-forest-700);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive utilities */
@media (max-width: 767px) {
    .hidden-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .hidden-tablet {
        display: none;
    }
}

/* Print styles */
@media print {
    nav, 
    .no-print,
    button,
    input,
    select,
    textarea {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Reduced transparency support */
@media (prefers-reduced-transparency: reduce) {
    .nav-blur {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(254, 253, 248, 0.95);
    }
    
    .hero-gradient {
        background: var(--color-forest-800);
    }
}

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

::-webkit-scrollbar-track {
    background: var(--color-cream-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-forest-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-forest-500);
}

/* Selection color */
::selection {
    background-color: var(--color-forest-200);
    color: var(--color-forest-900);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-forest-200);
    border-top-color: var(--color-forest-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Accessibility: Skip to main content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-forest-600);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible polyfill for older browsers */
.js-focus-visible :focus {
    outline: none;
}

.js-focus-visible .focus-visible {
    outline: 2px solid var(--color-forest-500);
    outline-offset: 2px;
}
