/* =============================================================
   INANDOUT GARDENS — Main Stylesheet
   Imports all partials in dependency order
   ============================================================= */

@import '_variables.css';
@import '_reset.css';
@import '_typography.css';
@import '_buttons.css';
@import '_navigation.css';
@import '_hero.css';
@import '_cards.css';
@import '_footer.css';
@import '_pages.css';
@import '_woocommerce.css';

/* =============================================================
   GLOBAL LAYOUT UTILITIES
   ============================================================= */

/* Sticky footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Scroll animation setup */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* =============================================================
   GLOBAL COMPONENT OVERRIDES
   ============================================================= */

/* WordPress alignment classes */
.alignleft  { float: left; margin-right: var(--space-6); }
.alignright { float: right; margin-left: var(--space-6); }
.aligncenter { display: block; margin: 0 auto; }
.alignwide  { max-width: 120%; margin-left: -10%; }
.alignfull  { width: 100vw; margin-left: calc(-1 * var(--container-pad)); }

/* Clearfix */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* =============================================================
   404 PAGE
   ============================================================= */

.error-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-20) var(--container-pad);
    background: var(--color-primary);
}

.error-404__code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 16rem);
    font-weight: var(--fw-bold);
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    position: absolute;
    pointer-events: none;
}

.error-404__content {
    position: relative;
}

.error-404__title {
    font-size: var(--fs-4xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.error-404__text {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: var(--space-8);
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
