/* === SHARED STYLES FOR AROMAPSYFACTOR SITE === */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2D2D2D;
    background-color: #FDFCF8;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Links */
a {
    color: #4A7A35;
    transition: color 0.3s ease;
}

a:hover {
    color: #395a28;
}

/* Lists */
ul, ol {
    margin-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* Forms */
input, textarea, select {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

button {
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

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

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Color Palette */
.accent-color {
    color: #4A7A35;
}

.cream-bg {
    background-color: #FDFCF8;
}

.dark-bg {
    background-color: #1A1A1A;
}

.white-bg {
    background-color: #FFFFFF;
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a, a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }
}

/* Scrollbar Styling (Webkit browsers) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #395a28;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid #4A7A35;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #4A7A35;
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid #4A7A35;
    outline-offset: 2px;
}

/* Smooth transitions — default easing for interactive elements */
a, button, input, textarea {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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;
    }
}
