/* ===== Casselman Valley Farm B&B — Custom Styles ===== */
/* Base reset and custom utility styles */

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --forest-900: #0c1a0c;
    --forest-800: #142714;
    --forest-700: #1c361c;
    --forest-600: #264726;
    --forest-500: #355e35;
    --forest-400: #527d52;
    --forest-300: #7a9e7a;
    --forest-200: #a8bfa8;
    --forest-100: #d5e0d5;
    --forest-50: #f0f5f0;
    --cream-50: #fdfcfa;
    --cream-100: #faf7f0;
    --cream-200: #f5f0e0;
    --cream-300: #efe5c8;
}

/* ===== BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1c361c;
    background-color: #fdfcfa;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1c361c;
}

/* ===== SELECTION ===== */
::selection {
    background-color: #527d52;
    color: #fdfcfa;
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
    outline: 2px solid #527d52;
    outline-offset: 2px;
}

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

/* ===== LINK RESETS ===== */
a {
    text-decoration: none;
    color: inherit;
}

/* ===== BUTTON RESETS ===== */
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== INPUT RESETS ===== */
input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #355e35;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .grain-overlay,
    .ticker-wrap,
    .mobile-menu,
    .hamburger {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-bg {
        background: #1c361c !important;
    }
}

/* ===== HIGH CONTRAST ===== */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .btn-secondary {
        border-width: 2px;
    }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

/* ===== SMALL SCREENS ===== */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
}

/* ===== UTILITY CLASSES ===== */
.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;
}

.text-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.text-sans {
    font-family: 'Lato', sans-serif;
}
