/**
 * HubsMesaclick Theme - Custom Styles
 *
 * @package HubsMesaclick Theme
 */

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Header Styles
   ======================================== */
.hmc-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Admin bar offset */
.admin-bar .hmc-site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .hmc-site-header {
        top: 46px;
    }
}

/* ========================================
   Post Card Styles
   ======================================== */
.hmc-post-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hmc-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Hero Section
   ======================================== */
.hmc-hero-section {
    position: relative;
}

.hmc-hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

/* ========================================
   Button Enhancements
   ======================================== */
.wp-block-button__link {
    transition: all 0.2s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

/* ========================================
   Footer Styles
   ======================================== */
.hmc-site-footer a:hover {
    color: var(--wp--preset--color--accent) !important;
}

/* ========================================
   Menu Page Styles
   ======================================== */
.hmc-menu-template {
    padding: 0 !important;
    max-width: none !important;
}

.hmc-menu-page body {
    background: var(--wp--preset--color--neutral-50);
}

/* Hide admin bar on menu page for better mobile experience */
.hmc-menu-page #wpadminbar {
    display: none !important;
}

.hmc-menu-page.admin-bar {
    margin-top: 0 !important;
}

.hmc-menu-page html {
    margin-top: 0 !important;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    /* Smaller headings on mobile */
    h1 {
        font-size: var(--wp--preset--font-size--3x-large) !important;
    }

    h2 {
        font-size: var(--wp--preset--font-size--2x-large) !important;
    }

    /* Stack columns on mobile */
    .wp-block-columns {
        flex-direction: column !important;
    }

    .wp-block-column {
        flex-basis: 100% !important;
    }

    /* Adjust padding on mobile */
    .alignfull > .wp-block-group__inner-container {
        padding-left: var(--wp--preset--spacing--20);
        padding-right: var(--wp--preset--spacing--20);
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .hmc-site-header,
    .hmc-site-footer,
    .wp-block-button {
        display: none !important;
    }

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

/* ========================================
   Accessibility
   ======================================== */
/* Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    padding: 8px 16px;
    z-index: 100000;
    text-decoration: none;
}

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

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