/*
Theme Name: The Pier House
Theme URI: https://thepierhouse.co.uk
Author: The Pier House
Author URI: https://thepierhouse.co.uk
Description: A modern WordPress block theme inspired by Scottish heritage. Features a clean, responsive design with a natural green color palette reminiscent of the Scottish Highlands.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pierhouse
Tags: block-patterns, full-site-editing, one-column, custom-colors, custom-menu, editor-style, featured-images, wide-blocks

The Pier House - A Scottish Heritage Theme
*/

/* Additional custom styles beyond theme.json */

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

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* Navigation hover effects */
.wp-block-navigation a:hover {
    opacity: 0.8;
}

/* Hero section image overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.7) 0%, rgba(45, 90, 61, 0.4) 100%);
}

/* Content image styling */
.wp-block-post-content img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
    transition: all 0.3s ease;
}

/* Card-style content blocks */
.wp-block-group.is-style-card {
    background: var(--wp--preset--color--background);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: var(--wp--preset--spacing--40);
}

/* Footer styling */
.site-footer {
    border-top: 1px solid rgba(45, 90, 61, 0.1);
}

/* Hero accreditation link (view full image) */
.wp-block-cover {
    position: relative;
}
.wp-block-cover .pierhouse-hero-accreditation {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    border-radius: 4px;
    z-index: 2;
}
.wp-block-cover .pierhouse-hero-accreditation:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
}

/* Hero credit text (under hero, right-aligned) */
.pierhouse-hero-credit {
    margin: 0.5rem 0 1.5rem;
    padding: 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--wp--preset--color--muted, #6B7B6E);
    text-align: right;
}

/* Mobile navigation improvements */
@media (max-width: 782px) {
    .wp-block-navigation__responsive-container.is-menu-open {
        background: var(--wp--preset--color--primary);
    }
    
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
        color: var(--wp--preset--color--background);
        padding: 1rem;
        font-size: 1.25rem;
    }
}
