/*
Theme Name: Nouveau Design Build
Theme URI: https://nouveaudesignbuild.com
Author: Nouveau Design Build
Author URI: https://nouveaudesignbuild.com
Description: Custom theme for Nouveau Design Build - Architecture and Interior Design portfolio. Features Bootstrap 4, Slick carousels, WOW.js animations, and ACF integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
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: nouveau
Tags: custom-menu, custom-logo, featured-images, theme-options, portfolio

This theme is designed to replicate the static Nouveau Design Build site
with full WordPress content management capabilities.
*/

/* ==========================================================================
   WordPress-specific overrides
   ========================================================================== */

/* Admin bar spacing for sticky header */
body.admin-bar .sticky-header.sticky-fixed-top {
    top: 32px;
}

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

/* Ensure WordPress content images are responsive */
.entry-content img,
.post-content img {
    max-width: 100%;
    height: auto;
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

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

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

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

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

/* Screen reader text (accessibility) */
.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;
}

/* WordPress gallery styling */
.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5em;
}

.gallery-item {
    padding: 0.5em;
}

.gallery-columns-2 .gallery-item { width: 50%; }
.gallery-columns-3 .gallery-item { width: 33.333%; }
.gallery-columns-4 .gallery-item { width: 25%; }
.gallery-columns-5 .gallery-item { width: 20%; }

@media (max-width: 767px) {
    .gallery-item {
        width: 50% !important;
    }
}

/* Post navigation styling */
.post-navigation,
.posts-navigation {
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

/* Comment form styling to match theme */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1em;
}

.comment-form input[type="submit"] {
    background-color: var(--primary, #C0B0AD);
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--secondary, #8A7B6B);
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin: 2em 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 1em;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--dark, #212529);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--primary, #C0B0AD);
    color: #fff;
    border-color: var(--primary, #C0B0AD);
}
