/*
Theme Name: TheUnframer
Theme URI: https://theunframer.com
Author: TheUnframer Team
Author URI: https://theunframer.com
Description: Custom WordPress theme for TheUnframer - frameless art mounting services. Features custom page templates for products, gallery, upload functionality, and full ACF Pro integration for easy content management.
Version: 1.0.20
Requires at least: 6.0
Tested up to: 6.7
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: theunframer
Tags: custom-background, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready
*/

/**
 * Table of Contents:
 * 1. WordPress Core Overrides
 * 2. Accessibility
 * 3. Alignment & Utility Classes
 * 4. WordPress Blocks
 * 5. Admin Specific Styles
 */

/*--------------------------------------------------------------
1. WordPress Core Overrides
--------------------------------------------------------------*/

/* Ensure proper alignment for WordPress elements */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* WordPress Captions */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    margin-top: 0.5em;
    font-size: 0.875em;
    color: #666;
}

/* WordPress Galleries */
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    margin: 0;
    padding: 0.5em;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-caption {
    display: block;
    font-size: 0.875em;
    color: #666;
    margin-top: 0.5em;
}

/*--------------------------------------------------------------
2. Accessibility
--------------------------------------------------------------*/

/* Skip to content link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    padding: 1em;
    background: #fff;
    color: #000;
    text-decoration: none;
}

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

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/*--------------------------------------------------------------
3. Alignment & Utility Classes
--------------------------------------------------------------*/

.clear::after {
    content: "";
    display: table;
    clear: both;
}

/*--------------------------------------------------------------
4. WordPress Blocks (Gutenberg)
--------------------------------------------------------------*/

/* Block Editor Styles - Future implementation */
.wp-block {
    max-width: 1140px;
}

/* Wide alignment */
.alignwide {
    width: 100%;
    max-width: 1400px;
}

/* Full alignment */
.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/*--------------------------------------------------------------
4a. Gutenberg Blocks in Page Content (Contact, etc.)
--------------------------------------------------------------*/

/* Container for Gutenberg blocks in page content */
.content-wrapper > .wp-block-heading,
.content-wrapper > .wp-block-paragraph,
.content-wrapper > .wp-block-separator,
.content-wrapper > .wp-block-group,
.content-wrapper > h2.wp-block-heading,
.content-wrapper > h3.wp-block-heading,
.content-wrapper > h4.wp-block-heading,
.content-wrapper > p,
.content-wrapper > hr {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Drop-off Locations Section Styling */
.content-wrapper > h2.wp-block-heading.has-text-align-center {
    background-color: #f5f5f5;
    padding-top: 3rem;
    padding-bottom: 1rem;
    margin-bottom: 0;
    max-width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.content-wrapper > hr.wp-block-separator.is-style-wide {
    max-width: 800px;
    margin-top: 0;
    margin-bottom: 2rem;
    background-color: #f5f5f5;
    padding-top: 0.5rem;
    border: none;
    border-top: 2px solid #e2e8f0;
}

.content-wrapper > hr.wp-block-separator:not(.is-style-wide) {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    border-top: 1px solid #e2e8f0;
    background-color: #f5f5f5;
    padding-top: 0;
    padding-bottom: 0;
}

.content-wrapper > h4.wp-block-heading {
    background-color: #f5f5f5;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
}

.content-wrapper > p:not(.page-intro) {
    background-color: #f5f5f5;
    padding-top: 0;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Links within drop-off content */
.content-wrapper > p a {
    color: #e23c2c;
    text-decoration: none;
    font-weight: 500;
}

.content-wrapper > p a:hover {
    text-decoration: underline;
}

/* Last paragraph before footer needs bottom padding */
.content-wrapper > p:last-of-type {
    padding-bottom: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper > h2.wp-block-heading.has-text-align-center {
        font-size: 1.5rem;
        padding-top: 2rem;
    }

    .content-wrapper > h4.wp-block-heading {
        font-size: 1.05rem;
    }

    .content-wrapper > p:not(.page-intro) {
        font-size: 0.9rem;
    }
}

/*--------------------------------------------------------------
4b. Drop-Off Locations Section (Group Block)
--------------------------------------------------------------*/

.dropoff-locations-section {
    background-color: #f5f5f5;
    padding: 3rem 1rem;
    max-width: 100% !important;
}

.dropoff-locations-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.dropoff-locations-section hr.wp-block-separator {
    max-width: 800px;
    margin: 1.5rem auto;
    border: none;
    border-top: 1px solid #ddd;
    opacity: 1;
}

.dropoff-locations-section hr.wp-block-separator.is-style-wide {
    border-top: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.dropoff-locations-section h4 {
    max-width: 800px;
    margin: 0 auto 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
}

.dropoff-locations-section p {
    max-width: 800px;
    margin: 0 auto 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.dropoff-locations-section p strong {
    color: #e23c2c;
    font-weight: 600;
}

.dropoff-locations-section p em {
    color: #666;
}

.dropoff-locations-section p a {
    color: #e23c2c;
    text-decoration: none;
    font-weight: 500;
}

.dropoff-locations-section p a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .dropoff-locations-section {
        padding: 2rem 1rem;
    }

    .dropoff-locations-section h2 {
        font-size: 1.5rem;
    }

    .dropoff-locations-section h4 {
        font-size: 1.05rem;
    }

    .dropoff-locations-section p {
        font-size: 0.9rem;
    }
}

/*--------------------------------------------------------------
5. Admin Specific Styles
--------------------------------------------------------------*/

/* Editor styles to match frontend */
.editor-styles-wrapper {
    font-family: 'Poppins', sans-serif;
}

/* ACF Field Helper Classes */
.acf-field {
    margin-bottom: 1em;
}

/*--------------------------------------------------------------
Note: Main theme styles are loaded via enqueue system
- assets/css/bootstrap.min.css
- assets/css/plugins.css
- assets/css/main-style.css
- assets/css/custom.css
- assets/css/custom-nav.css
- assets/css/color/custom-accent.css
--------------------------------------------------------------*/
