/*
Theme Name: Anthony Haughey V2 Child
Theme URI: https://anthonyhaughey.com
Description: Child theme for Anthony Haughey V2 artist portfolio theme.
Author: Bornbee Technologies
Author URI: https://bornbee.com
Template: anthony-haughey-v2
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anthony-haughey-child
*/


/* ============================================
   GLOBAL — Narrower Containers
   ============================================ */

:root {
    --container-content: 1060px;
    --container-max: 1200px;
}


/* ============================================
   FOOTER — centered, stacked
   ============================================ */

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid #e8e8e8;
    padding: 2.5rem 0 1.5rem;
}

.footer-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

/* Newsletter — inline email + button */
.footer-newsletter {
    width: 100%;
    max-width: 360px;
}

.footer-nl-form,
.footer-newsletter .mc4wp-form {
    display: flex;
    gap: 0;
}

.footer-nl-form input[type="email"],
.footer-newsletter .mc4wp-form input[type="email"] {
    flex: 1;
    border: 1px solid #ddd;
    border-right: none;
    padding: 0.45rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    outline: none;
    background: transparent;
    color: #333;
    transition: border-color 0.2s ease;
    min-width: 0;
}

.footer-nl-form input[type="email"]:focus,
.footer-newsletter .mc4wp-form input[type="email"]:focus {
    border-color: #999;
}

.footer-nl-form input[type="email"]::placeholder,
.footer-newsletter .mc4wp-form input[type="email"]::placeholder {
    color: #bbb;
}

.footer-nl-form button[type="submit"],
.footer-newsletter .mc4wp-form input[type="submit"] {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    padding: 0.45rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.footer-nl-form button[type="submit"]:hover,
.footer-newsletter .mc4wp-form input[type="submit"]:hover {
    background: #333;
}

/* Social icons — centered row */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    color: #999;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.footer-social a:hover {
    color: #333;
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* Copyright + Legal + Credit — centered */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.footer-copyright {
    font-size: 0.72rem;
    color: #999;
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-legal a {
    font-size: 0.72rem;
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #333;
}

.footer-credit {
    font-size: 0.68rem;
    color: #ccc;
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-credit a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: #333;
}

@media (max-width: 600px) {
    .footer-newsletter {
        max-width: 100%;
    }
}


/* ============================================
   WORKS PAGE — Toolbar + Grid + List
   ============================================ */

.site-main--works {
    padding-top: 2rem;
}

/* Toolbar */
.works-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Ensure filter is left aligned */
.works-toolbar .works-filter {
    margin-left: 0 !important;
    justify-content: flex-start !important;
}

.works-toolbar__left {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.works-toolbar__title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    color: #1a1a1a;
}

.works-toolbar__count {
    font-size: 0.75rem;
    color: #bbb;
    font-weight: 400;
}

.works-toolbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Simple search input */
.works-search-input {
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: #333;
    padding: 0.3rem 0;
    width: 120px;
    transition: border-color 0.2s ease;
    letter-spacing: 0.02em;
}

.works-search-input:focus {
    border-bottom-color: #333;
}

.works-search-input::placeholder {
    color: #ccc;
}

/* View toggle */
.works-view-toggle {
    display: flex;
    gap: 0.2rem;
}

.works-view-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 0.2rem;
    color: #ccc;
    transition: color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
}

.works-view-btn.active {
    color: #333;
    border-color: #ddd;
}

.works-view-btn:hover {
    color: #666;
}

/* Grid */
/* Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.works-grid__item {
    overflow: hidden;
}

.works-grid__link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.works-grid__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f4f3f1;
}

.works-grid__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.works-grid__item:hover .works-grid__image img {
    transform: scale(1.03);
    opacity: 0.9;
}

.works-grid__placeholder {
    aspect-ratio: 4 / 3;
    background: #e8e6e3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-grid__placeholder span {
    font-size: 1.25rem;
    font-weight: 300;
    color: #999;
    letter-spacing: 0.1em;
}

.works-grid__caption {
    padding: 0.6rem 0 0;
}

.works-grid__title {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 400;
    margin: 0;
    color: #333;
    line-height: 1.3;
}

.works-grid__year {
    font-size: 0.7rem;
    color: #bbb;
    font-weight: 300;
    display: block;
    margin-top: 0.15rem;
}

/* List view */
.works-list {
    border-top: 1px solid #eee;
}

.works-list__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eee;
    text-decoration: none !important;
    color: #333;
    transition: color 0.2s ease;
}

.works-list__item:hover {
    color: #000;
}

.works-list__title {
    font-size: 0.85rem;
    font-weight: 400;
}

.works-list__year {
    font-size: 0.75rem;
    color: #bbb;
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 1rem;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
    color: #999;
    font-size: 0.9rem;
}

/* Works responsive */
@media (max-width: 900px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .works-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .works-toolbar__right {
        justify-content: space-between;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .works-search-input {
        width: 100%;
        min-width: 0;
    }
}


/* ============================================
   BACK LINK (project pages)
   ============================================ */

.back-link {
    display: inline-block;
    font-size: 0.78rem;
    color: #999;
    text-decoration: none !important;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #333;
}


/* ============================================
   SINGLE PROJECT — Prev/Next + Related
   ============================================ */

.single-project__year {
    font-size: 0.82rem;
    color: #999;
    margin-left: 0.3rem;
}

.project-prevnext {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.project-prevnext__link {
    text-decoration: none !important;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: color 0.2s ease;
    max-width: 45%;
}

.project-prevnext__link:hover {
    color: #000;
}

.project-prevnext__link--next {
    text-align: right;
    margin-left: auto;
}

.project-prevnext__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.project-prevnext__title {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
}

/* Related projects */
.related-projects {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-projects__heading {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin: 0 0 1.25rem;
}

.related-projects__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.related-card {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.related-card__image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f4f3f1;
    margin-bottom: 0.5rem;
}

.related-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e6e3;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.related-card__placeholder span {
    font-size: 1.25rem;
    font-weight: 300;
    color: #999;
    letter-spacing: 0.1em;
}

.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card__image img {
    transform: scale(1.03);
}

.related-card__title {
    font-size: 0.78rem;
    font-weight: 400;
    margin: 0;
    color: #333;
}

.related-projects__footer {
    margin-top: 1.5rem;
    text-align: center;
}

.related-projects__all {
    font-size: 0.78rem;
    font-weight: 500;
    color: #333;
    text-decoration: none !important;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.related-projects__all:hover {
    color: #000;
}

@media (max-width: 1024px) {
    .related-projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-prevnext {
        flex-direction: column;
        gap: 1.25rem;
    }

    .project-prevnext__link {
        max-width: 100%;
    }

    .project-prevnext__link--next {
        text-align: left;
    }

    .related-projects__grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   CONTACT PAGE
   ============================================ */

.page-template-page-contact .page-header {
    display: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 2rem 0 4rem;
}

.contact-heading {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    margin: 0 0 2rem;
}

.contact-body {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #333;
}

.contact-body p {
    margin-bottom: 1.25rem;
}

.contact-body a {
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-body a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.contact-body strong,
.contact-body b {
    font-weight: 600;
    color: #1a1a1a;
}

/* CF7 Form on Contact Page */
.contact-form {
    margin-top: 2rem;
}

.contact-form .wpcf7-form p {
    margin-bottom: 0.75rem;
}

.contact-form .wpcf7-form label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.02em;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: #333;
    background: transparent;
    outline: none;
    transition: border-color 0.2s ease;
    margin-top: 0.25rem;
}

.contact-form .wpcf7-form input[type="text"]:focus,
.contact-form .wpcf7-form input[type="email"]:focus,
.contact-form .wpcf7-form textarea:focus {
    border-bottom-color: #333;
}

.contact-form .wpcf7-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form .wpcf7-form input[type="submit"] {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 1rem;
}

.contact-form .wpcf7-form input[type="submit"]:hover {
    background: #333;
}

.contact-form .wpcf7-response-output {
    font-size: 0.8rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
    border: none !important;
}

.contact-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1.5rem;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #888;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: #333;
}

.contact-links svg {
    width: 16px;
    height: 16px;
}

.contact-portrait {
    position: relative;
}

.contact-portrait img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.contact-portrait__credit {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #bbb;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-portrait {
        order: -1;
    }

    .contact-portrait img {
        max-height: 350px;
        object-position: top center;
    }
}


/* ============================================
   CURRENT PROJECTS PAGE
   ============================================ */

.site-main--current-projects {
    padding-top: 0;
}

.current-projects-hero {
    padding: 4rem 0 2.5rem;
    text-align: center;
}

.current-projects-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-projects-hero__pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    animation: ah-pulse 2s ease-in-out infinite;
}

@keyframes ah-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.current-projects-hero__title {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    margin: 0 0 0.4rem;
    text-transform: uppercase;
}

.current-projects-hero__subtitle {
    font-size: 0.78rem;
    color: #bbb;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.current-project--featured {
    margin-bottom: 2.5rem;
}

.current-project--featured .current-project__link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.current-project__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: #f4f3f1;
}

.current-project__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.current-project--featured:hover .current-project__image-wrap img {
    transform: scale(1.03);
}

.current-project__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #333;
    backdrop-filter: blur(8px);
}

.current-project__dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: ah-pulse 2s ease-in-out infinite;
}

.current-project__info {
    padding: 1.25rem 0;
}

.current-project__title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 0.3rem;
    color: #1a1a1a;
}

.current-project__location,
.current-project__timeline {
    font-size: 0.78rem;
    color: #999;
    margin: 0.15rem 0;
}

.current-project__excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-top: 0.6rem;
    max-width: 600px;
}

.current-project--card {
    border-top: 1px solid #eee;
    padding: 1rem 0;
}

.current-project--card .current-project__link {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    transition: opacity 0.2s ease;
}

.current-project--card:hover .current-project__link {
    opacity: 0.85;
}

.current-project__thumb {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f4f3f1;
}

.current-project__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-project__status-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.current-project__status {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
}

.current-project--card .current-project__title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.current-project--card .current-project__location {
    font-size: 0.75rem;
}

.current-projects-empty {
    text-align: center;
    padding: 3rem 0;
    color: #999;
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .current-projects-hero__title {
        font-size: 1.75rem;
    }

    .current-project__image-wrap {
        aspect-ratio: 16 / 9;
    }

    .current-project--card .current-project__link {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .current-project--card .current-project__link {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   NEWSLETTER POPUP
   ============================================ */

.ah-nl-popup {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 1.75rem;
    width: 320px;
    max-width: calc(100vw - 2rem);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ah-nl-popup--visible {
    opacity: 1;
    transform: translateY(0);
}

.ah-nl-popup__close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.ah-nl-popup__close:hover {
    color: #333;
}

.ah-nl-popup__title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.2rem;
    color: #1a1a1a;
}

.ah-nl-popup__subtitle {
    font-size: 0.78rem;
    color: #999;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.ah-nl-popup .ah-nl-form input[type="email"],
.ah-nl-popup .mc4wp-form input[type="email"] {
    width: 100%;
    border: 1px solid #ddd;
    padding: 0.55rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.ah-nl-popup .ah-nl-form input[type="email"]:focus,
.ah-nl-popup .mc4wp-form input[type="email"]:focus {
    border-color: #333;
}

.ah-nl-popup .ah-nl-form button[type="submit"],
.ah-nl-popup .mc4wp-form input[type="submit"] {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ah-nl-popup .ah-nl-form button[type="submit"]:hover,
.ah-nl-popup .mc4wp-form input[type="submit"]:hover {
    background: #333;
}

@media (max-width: 480px) {
    .ah-nl-popup {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }
}