/**
 * Custom Styles for Lauren Grigg Block Theme
 *
 * Additional styles that complement theme.json
 *
 * @package Lauren_Grigg
 */

/* ==========================================================================
   Smooth Scrolling
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Global Enhancements
   ========================================================================== */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

/* ==========================================================================
   Navigation Enhancements
   ========================================================================== */

.wp-block-navigation a {
    transition: color 0.15s ease;
}

.wp-block-navigation a:hover {
    text-decoration: none !important;
}

/* ==========================================================================
   Button Enhancements
   ========================================================================== */

.wp-block-button__link {
    transition: all 0.15s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    border-width: 2px;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--sage);
    color: var(--wp--preset--color--white);
}

/* ==========================================================================
   Image Enhancements
   ========================================================================== */

.decorative-script img,
.hero-logo img,
.footer-logo img,
.footer-watermark img,
.cta-logo img {
    transition: transform 0.3s ease;
}

.decorative-script:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Card Styles
   ========================================================================== */

.post-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer a {
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: var(--wp--preset--color--sage-light) !important;
    text-decoration: none !important;
}

.footer-watermark {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-watermark:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.wp-block-social-links .wp-social-link {
    transition: transform 0.15s ease;
}

.wp-block-social-links .wp-social-link:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.wp-block-search__input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-search__input:focus {
    border-color: var(--wp--preset--color--sage);
    box-shadow: 0 0 0 3px rgba(138, 168, 133, 0.2);
    outline: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo,
.cta-logo {
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 781px) {
    .wp-block-columns {
        gap: var(--wp--preset--spacing--30) !important;
    }

    .about-image {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .wp-block-navigation,
    .wp-block-button {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}
