/*
Theme Name: St. Michael's Design Studio
Theme URI: https://stmichaelsdesignstudio.com
Author: Vince Livecchi
Description: Editorial portfolio and heritage documentation theme for St. Michael's Design Studio.
Version: 1.0
Text Domain: smds-theme
*/

:root {
    --bg-dark: #fcfcfc;   
    --primary-navy: #192841;
    --accent-gold: #c5a059;
    --text-light: #f7f7f7;
    --text-muted: #a0a5b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Avenir', 'Avenir Next', 'Nunito Sans', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;

    /* background-image: url('Images/SMD-Web-BG.png'); */
    /* background-repeat: repeat;
    background-position: center 20%; 
    background-size: 100% auto; 
    background-attachment: scroll; */
    

}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* --- ANNOUNCEMENT TOP BAR --- */
.top-bar {
    background-color: #0b0e14;
    color: var(--accent-gold);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

/* --- HEADER & NAVIGATION --- */
header {
    /* background: linear-gradient(rgba(15, 20, 29, 0.255), rgba(15, 20, 29, 0)), */
    background: 
    var(--primary-navy);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Offset main content so it doesn't get covered by fixed header */
main {
    padding-top: 100px; 
}

/* Hidden state when scrolling down */
header.nav-hidden {
    transform: translateY(-100%);
}

/* White background state when scrolling up */
header.nav-solid {
    background-color: var(--primary-navy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
}

/* Text color overrides when header is solid white */
header.nav-solid .brand-logo {
    color: var(--text-light);
}

header.nav-solid .desktop-nav a {
    color: var(--text-light);
}

header.nav-solid .action-btn {
    color: var(--text-light);
}

header.nav-solid .mobile-menu-toggle {
    color: var(--text-light);
}

/* .header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
} */

.header-container {
    height: 100px;            /* Fixes total header inner height */
    padding: 0 40px;          /* Vertical padding set to 0 since height is locked */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.brand-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    align-items: center;
}

.brand-logo span {
    color: var(--accent-gold);
}

.brand-logo img {
    height: 65px; /* Adjust this number to fit your header size */
    width: auto;
    display: block;
}

.brand-logo img.logo-desktop {
    display: block;
}

.brand-logo img.logo-mobile {
    display: none;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.desktop-nav a {
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    color: var(--text-light);
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--accent-gold);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.4rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

/* --- DESKTOP DEFAULT --- */
/* Hide the icon on desktop screens */
.nav-search-link .search-icon {
    display: none;
}

/* Ensure text is visible on desktop */
.nav-search-link .search-text {
    display: inline;
}


/* --- SMALLER SCREENS (MOBILE / TABLET) --- */
@media (max-width: 768px) {
    /* Hide the word "Search" */
    .nav-search-link .search-text {
        display: none;
    }

    /* Display the magnifying glass icon */
    .nav-search-link .search-icon {
        display: inline-block;
        font-size: 1.1rem;        /* Adjust icon sizing to match header scale */
        color: var(--text-light); /* Matches navigation link color */
        transition: color 0.3s ease;
    }

    /* Gold hover effect matching your navbar links */
    .nav-search-link:hover .search-icon {
        color: var(--accent-gold);
    }
}

/* --- SEARCH OVERLAY --- */
.search-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-navy);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: top 0.3s ease;
    z-index: 2000;
    border-bottom: 1px solid var(--accent-gold);
    visibility: hidden;
}

.search-overlay.active {
    top: 0;
    visibility: visible;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 0;
    font-size: 1.2rem;
    color: var(--text-light);
    font-family: var(--font-serif);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-gold);
}

.search-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
/* --- SEARCH OVERLAY FLEX FIX --- */
.search-overlay .search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px; /* Adjust to match your original design width */
    margin: 0 auto;
}

/* Ensure the form grows to span the container width */
.search-overlay form {
    flex: 1;
    display: flex;
    margin-right: 15px;
}

/* Ensure the input fills 100% of the form */
.search-overlay .search-input {
    width: 100%;
    box-sizing: border-box;
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background-color: var(--primary-navy);
    z-index: 2000;
    padding: 40px 20px;
    transition: left 0.3s ease;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    visibility: hidden;
}

.mobile-drawer.active {
    left: 0;
    visibility: visible;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    float: right;
    margin-bottom: 30px;
    line-height: 1;
}

.mobile-nav-links {
    list-style: none;
    clear: both;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- MAIN CONTENT PLACEHOLDER --- */
.hero-placeholder {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(rgba(15, 20, 29, 0.4), rgba(15, 20, 29, 0.4)), 
                url('Images/Disputa_del_Sacramento_Rafael-2.jpg') center/cover;
}

.hero-placeholder h1 {
    font-family: var(--font-serif);
    font-size: 3.7rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-placeholder p {
    font-size: 1.3rem;
    font-family: var(--font-serif);
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.portfolio-hero-placeholder {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(15, 20, 29, 0.4), rgba(15, 20, 29, 0.4)), 
                url('Images/Catholic-Vestment-Colours-Meaning-A-Guide-to-Liturgical-Symbolism-Hero-Image.jpg') center/cover;
}

.portfolio-hero-placeholder h1 {
    font-family: var(--font-serif);
    font-size: 3.7rem;
    font-weight: 400;
    margin-top: 35vh;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.portfolio-hero-placeholder p {
    font-size: 1.3rem;
    font-family: var(--font-serif);
    color: var(--text-light);
    line-height: 1.5; 
    min-height: 3.9rem;
    max-width: 600px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.btn-gold-header {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    transition: var(--transition);
    background-color: color-mix(in srgb, var(--text-light) 100%, transparent);
}

.btn-gold-header:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

.btn-gold {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

.page-end{
    display: flex;
    justify-content: center; /* Centers the image horizontally */
    align-items: center;     /* Centers the image vertically */
    height: 200px;           /* Set your desired container height */
    padding: 100px 0 150px;         /* Vertical spacing between content and footer */
    /* background-color: var(--bg-dark); */
}

.page-end img{
    height: 200px;         
    width: auto;           
    display: block;
}
.page-end p{
    color:#0b0e14;
    font-family: var(--font-serif);
}
/* Default state (Desktop): Show desktop logo, hide mobile logo */
.logo-mobile {
    display: none;
}

.logo-desktop {
    display: block;
}

/* --- SPLIT FEATURE SECTION --- */
.split-section {
    padding: 100px 100px 0px;
    background-color: color var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.split-section-about {
    padding: 0px 100px 100px;
    background-color: color var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.split-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 Split */
    gap: 80px;
    align-items: center;
}

.split-media img {
    width: 100%;
    height: 550px;
    object-fit: cover; /* Crops cleanly to fit the container height */
    display: block;
}

.split-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns text & button to the left */
}

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.split-content h2 {
    font-family: var(--font-serif);
    color:var(--primary-navy) ;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.split-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 500px;
}

/* Swaps the display order of the image and text on desktop screens */
.split-container.reverse .split-media {
    order: 2;
}

.split-container.reverse .split-content {
    order: 1;
}

/* Keeps the image on top when collapsed on mobile */
@media (max-width: 992px) {
    .split-container.reverse .split-media {
        order: 1;
    }
    
    .split-container.reverse .split-content {
        order: 2;
    }
}

/* Responsive adjustment for Mobile */
@media (max-width: 992px) {
    .split-container {
        grid-template-columns: 1fr; /* Stacks image on top of text on smaller screens */
        gap: 40px;
    }

    .split-section {
        padding: 60px 20px;
    }

    .split-media img {
        height: 350px;
    }

    .split-content h2 {
        font-size: 2.2rem;
    }
}
/* --- ABOUT: TRUSTED BY THE CHURCH --- */
.about-trust {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px 0;
    text-align: center;
}

.about-trust h2 {
    font-family: var(--font-serif);
    color: var(--primary-navy);
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.about-trust p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* --- ABOUT: CTA --- */
.about-cta {
    max-width: 700px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

.about-cta h2 {
    font-family: var(--font-serif);
    color: var(--primary-navy);
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.about-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-cta .btn-gold-header {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background-color: transparent;
}

.about-cta .btn-gold-header:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

@media (max-width: 992px) {
    .about-trust,
    .about-cta {
        padding: 60px 20px 0;
    }

    .about-trust h2,
    .about-cta h2 {
        font-size: 2rem;
    }
}

.spacer-100 {
    height: 100px;
    width: 100%;
}

/* --- FEATURED VESTMENTS (Homepage) --- */
.featured-vestments {
    padding: 100px 100px 0;
}

.featured-vestments-header {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.featured-vestments-header h2 {
    font-family: var(--font-serif);
    color: var(--primary-navy);
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.featured-vestments .portfolio-grid {
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .featured-vestments {
        padding: 60px 20px 0;
    }

    .featured-vestments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* --- SINGLE VESTMENT PAGE --- */
.single-vestment-page {
    padding-bottom: 60px;
}

.vestment-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 100px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.vestment-media {
    display: flex;
    flex-direction: column;
}

/* Fixed 4:5 ratio, sized to fill the screen height (minus the 100px
   fixed header) on desktop; the carousel sits below and can be
   scrolled to. Width follows from the ratio rather than the grid track. */
.vestment-main-image {
    position: relative;
    margin: 0 auto;
    height: calc(100vh - 100px);
    aspect-ratio: 5 / 7;
    max-width: 80%;
    overflow: hidden;
    background-color: var(--primary-navy);
}

.vestment-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.vestment-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(25, 40, 65, 0.55);
    color: var(--text-light);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.vestment-main-image:hover .vestment-arrow {
    opacity: 1;
}

.vestment-arrow:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

/* Lightbox: full-size image overlay */
.vestment-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: rgba(11, 14, 20, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.vestment-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.vestment-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-out;
}

.vestment-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.vestment-lightbox-close:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

.vestment-arrow-prev {
    left: 12px;
}

.vestment-arrow-next {
    right: 12px;
}

.vestment-carousel {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
}

.vestment-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 100px;
    padding: 0;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

.vestment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vestment-thumb.active,
.vestment-thumb:hover {
    border-color: var(--accent-gold);
}

.vestment-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
}

.vestment-title {
    font-family: var(--font-serif);
    color: var(--primary-navy);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 10px 0 25px;
    letter-spacing: 1px;
}

.vestment-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

.vestment-description p {
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .vestment-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px 0;
    }

    /* Filling the full viewport height makes the image too narrow on a
       phone-width column, so size it off the width instead here. */
    .vestment-main-image {
        height: auto;
        width: 80%;
        max-width: none;
    }

    .vestment-title {
        font-size: 2.2rem;
    }
}

.single-insight-page {
    padding-top: 0px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-navy);
    border-top: 1px solid var(--border-color);
    padding-top: 70px;
    padding-bottom: 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr; /* Wider space for logo/description and subscription */
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 2rem 80px;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-column ul li a:hover {
    color: var(--text-light);
}

.newsletter-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--accent-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 2rem;
    font-size: 0.8rem;
    color: #888888;
}
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 65px; /* Set your desired height for the footer */
    width: auto;
    display: block;
}

/* --- PORTFOLIO GALLERY PAGE --- */
.portfolio-page {
    padding-top: 100px;
    /* background-color: var(--bg-dark); */
}

.portfolio-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px 40px;
    text-align: left;
}

.portfolio-header h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: var(--primary-navy);
}

.portfolio-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 120px 40px;
}

/* 3-Column Responsive Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3 , 1fr);
    gap: 20px 10px; /* Vertical gap, Horizontal gap */
}

.portfolio-item {
    display: block;
    text-decoration: none;
    color: inherit;
    /* Smooth lift animation setup */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

    .item-media {
        width: 100%;
        aspect-ratio: 4 / 5;
        overflow: hidden;
        position: relative;
        background-color: var(--primary-navy);
    }

.item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Subtle image scale setup */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Second (hover) image sits on top, hidden until hover */
.item-media-front {
    position: relative;
    z-index: 2;
}

.item-media-hover {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover .item-media-front {
    opacity: 0;
}

.portfolio-item:hover .item-media-hover {
    opacity: 1;
}

.item-meta {
    padding-top: 18px;
}

/* .item-meta h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
} */

/* .item-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
} */

/* ==========================================================================
   SEARCH RESULTS PAGE (SMDS EDITORIAL STYLE)
   ========================================================================== */

.search-results-header {
    padding: 120px 2rem 60px 2rem;
    text-align: center;
    background-color: var(--bg-color, #fcfcfc);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.search-results-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-color, #111111);
    margin: 0;
}

.search-results-header h1 span {
    font-style: italic;
    color: var(--accent-gold, #c5a059);
}

.search-results-grid {
    padding: 80px 2rem 120px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.search-results-grid .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

/* Individual Result Cards */
.search-result-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(197, 160, 89, 0.4);
}

.search-result-item h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
}

.search-result-item h2 a {
    color: var(--text-color, #111111);
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result-item h2 a:hover {
    color: var(--accent-gold, #c5a059);
}

.search-result-item .entry-excerpt {
    font-family: 'Nunito Sans', 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 1.5rem;
}

.search-result-item .read-more {
    font-family: 'Nunito Sans', 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--accent-gold, #c5a059);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.search-result-item .read-more:hover {
    gap: 0.8rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .search-results-header {
        padding: 100px 1.5rem 40px 1.5rem;
    }
    .search-results-grid {
        padding: 40px 1.5rem 80px 1.5rem;
    }
    .search-results-grid .posts-grid {
        grid-template-columns: 1fr;
    }
}
/* Vestment Result Cards: image + title only, matching the portfolio grid */
.search-result-vestment {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.search-result-vestment:hover {
    transform: translateY(-4px);
}

.search-result-vestment .item-media {
    margin-bottom: 15px;
}

.search-result-vestment-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-navy);
    text-align: center;
    transition: color 0.3s ease;
}

.search-result-vestment:hover .search-result-vestment-title {
    color: var(--accent-gold);
}

/* Styling for "No Results Found" message */
.search-results-grid .no-results-msg {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    color: #666666; /* Adjust color hex here */
    text-align: center;
    margin: 3rem 0;
}

/* Optional: Highlight the search term inside the message */
.search-results-grid .no-results-msg span {
    font-style: italic;
    color: #c5a059; /* Gold accent color */
}

/* ==========================================================================
   INSIGHTS / BLOG FEED (SMDS EDITORIAL STYLE)
   ========================================================================== */

.insights-hero-placeholder {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(15, 20, 29, 0.4), rgba(15, 20, 29, 0.4)), 
                url('Images/notre_dame_de_paris_2015.19.79.jpg') center/cover;
}

.insights-hero-placeholder h1 {
    font-family: var(--font-serif);
    font-size: 3.7rem;
    font-weight: 400;
    margin-top: 35vh;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.insights-hero-placeholder p {
    font-size: 1.3rem;
    font-family: var(--font-serif);
    color: var(--text-light);
    line-height: 1.5; 
    min-height: 3.9rem;
    max-width: 600px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.insights-header {
    padding: 120px 2rem 60px 2rem;
    text-align: center;
    background-color: #fcfcfc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.insights-header .section-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #c5a059;
    display: block;
    margin-bottom: 0.75rem;
}

.insights-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #111111;
}

.insights-header p {
    font-family: var(--font-sans);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.insights-container {
    padding: 0px 2rem 120px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3.5rem 2.5rem;
}

.insight-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.insight-card .card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: block;
}

.insight-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-card:hover .card-media img {
    transform: scale(1.04);
}

.insight-card .card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-card .card-meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888888;
    margin-bottom: 0.75rem;
}

.insight-card .card-meta a {
    color: var(--accent-gold);
    text-decoration: none;
}

.insight-card .card-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 1rem 0;
}

.insight-card .card-title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.insight-card .card-title a:hover {
    color: var(--accent-gold);
}

.insight-card .card-excerpt {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.insight-card .read-more-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 300;
    color: var(--accent-gold);
    text-decoration: none;
    align-self: flex-start;
    transition: gap 0.2s ease;
}

/* Pagination */
.insights-pagination {
    margin-top: 60px;
    text-align: center;
}

.insights-pagination .nav-links {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
}

.insights-pagination a, 
.insights-pagination .current {
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #111111;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.insights-pagination .current {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

@media screen and (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MINIMAL SINGLE INSIGHT / ARTICLE STYLES
   ========================================================================== */

.insight-article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0px 2rem 100px 2rem;
    background-color: var(--bg-dark);
}

/* Minimal Header Layout */

.article-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.2;
    color: #111111;
    margin: 0 0 0.8rem 0;
}

.artical-overwrite-test {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #777777;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.artical-overwrite-test a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* Featured Hero Image (if set) */
.article-hero-media {
    margin-bottom: 2.5rem;
}

.article-hero-media img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Article Body Typography */
.article-body {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2c2c2c;

}

.article-body p {
    margin-bottom: 1.8rem;
}

.article-body h2, 
.article-body h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    color: #111111;
    margin: 2.5rem 0 1rem 0;
}

.article-body h2 { font-size: 2rem; }
.article-body h3 { font-size: 1.6rem; }

.article-body blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 2px solid var(--accent-gold,);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    color: #111111;
    /* background: #fcfcfc; */
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* Footer Navigation Links */
.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    background-color: transparent;
    /* border-top: 1px solid rgba(0, 0, 0, 0.08); */
}

.post-navigation-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 40px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.post-navigation-links a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-navigation-links a:hover {
    color: var(--accent-gold, #c5a059);
}

.back-to-insights {
    text-align: center;
}

.back-to-insights .btn-editorial {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
    color: var(--accent-gold, #c5a059);
    text-decoration: none;
}
/* Privacy and Terms */

.article-body-pt {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2c2c2c;
    padding-top: 120px;
    
}

.article-body-pt p {
    margin-bottom: 1.8rem;
}

.article-body-pt h2, 
.article-body-pt h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: #111111;
    margin: 2.5rem 0 1rem 0;
}

.article-body-pt strong{
    font-weight: 600;
}

.article-body-pt h2 { font-size: 2rem; }
.article-body-pt h3 { font-size: 1.6rem; }

/* History page */

.article-body-history {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2c2c2c;
    /* padding-top: 120px; */
    
}

.article-body-history p {
    margin-bottom: 1.8rem;
}

.article-body-history h2, 
.article-body-history h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: #111111;
    margin: 2.5rem 0 1rem 0;
}

.article-body-history strong{
    font-weight: 600;
}

.article-body-histoy h2 { font-size: 2rem; }
.article-body-history h3 { font-size: 1.6rem; }

/* --- WATSON & CO HOVER EFFECT --- */
.portfolio-item:hover {
    /* Lifts the entire card up by 8px and adds shadow depth */
    transform: translateY(-2px);
    /* box-shadow: 0 5px 10px rgba(0, 0, 0, 0.35); */
}

.portfolio-item:hover .item-media img {
    /* Slightly expands the image inside the card frame */
    transform: scale(1.02);
}

.portfolio-item:hover .item-meta h3 {
    color: var(--accent-gold);
}

/* About Page */
.about-page {
    padding-top: 100px;
    background-color: var(--bg-dark);
}

.about-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px 40px;
    text-align: left;
}

.about-header h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: var(--primary-navy);
}

.about-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
}

.about-hero-placeholder {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    
    /* Updated background properties */
    background-image: linear-gradient(rgba(15, 20, 29, 0.4), rgba(15, 20, 29, 0.4)), 
                      url('Images/ArchangelMichaelNew2Small__19839.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    
    /* FOCAL POINT CONTROL */
    background-position: center 20%; /* Shift focus to top of image (head/subject area) */
}
.about-hero-placeholder h1 {
    font-family: var(--font-serif);
    font-size: 3.7rem;
    font-weight: 400;
    margin-top: 35vh;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.about-hero-placeholder p {
    font-size: 1.3rem;
    font-family: var(--font-serif);
    color: var(--text-light);
    line-height: 1.5;
    min-height: 3.9rem;
    max-width: 600px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.history-hero-placeholder {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 100px;
    padding: 60px 20px;
    background: linear-gradient(rgba(15, 20, 29, 0.5), rgba(15, 20, 29, 0.5)),
                url('Images/Eyck,_Jan_van_-_Madonna_with_Canon_van_der_Paele-2.jpeg') center/cover;
}

.history-hero-placeholder h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.history-hero-placeholder p {
    font-size: 1.1rem;
    font-family: var(--font-serif);
    color: var(--text-light);
    max-width: 600px;
    letter-spacing: 1px;
}

/* --- WATSON & CO NO-FORM CONTACT PAGE --- */
.contact-page {
    padding-top: 100px;
    padding-bottom: 120px;
    /* background-color: var(--bg-dark); */
}

.contact-hero-placeholder {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(15, 20, 29, 0.4), rgba(15, 20, 29, 0.4)), 
                url('Images/Eyck,_Jan_van_-_Madonna_with_Canon_van_der_Paele-2.jpeg') center/cover;
    background-position: 50% 20%;
}

.contact-hero-placeholder h1 {
    font-family: var(--font-serif);
    font-size: 3.7rem;
    font-weight: 400;
    margin-top: 35vh;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.contact-hero-placeholder p {
    font-size: 1.1rem;
    font-family: var(--font-serif);
    color: var(--text-light);
    line-height: 1.5; 
    min-height: 3.9rem;
    max-width: 600px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.contact-container {
    max-width: 720px; /* Elegant, centered reading column */
    margin: 0 auto;
    padding: 0 30px;
}

.contact-container p{
    color: var(--primary-navy);
    padding-bottom: 40px;
    /* font-family: var(--font-serif); */
}

/* Typography Overrides */
.contact-info h1 {
    font-family: var(--font-serif);
    color: var(--primary-navy);
    font-size: 3.5rem;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* Primary Email CTA */
.contact-email-cta {
    text-align: center;
    padding: 20px 30px 0px;
    /* margin-bottom: 40px; */
    border: 1px solid var(--border-color, rgba(25, 40, 65, 0.15));
}

.contact-email-cta h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.contact-email-link {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--primary-navy);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold);
    transition: color 0.3s ease;
}

.contact-email-link:hover {
    color: var(--accent-gold);
}

.contact-email-cta .info-subtext {
    margin-top: 15px;
}

/* What to Include Checklist */
.contact-checklist {
    padding-bottom: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color, rgba(25, 40, 65, 0.15));
}

.contact-checklist h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.contact-checklist ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-checklist li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.contact-checklist li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* FAQ */
.contact-faq {
    padding-top: 30px;
    margin-top: 10px;
    border-top: 1px solid var(--border-color, rgba(25, 40, 65, 0.15));
}

.contact-faq h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 24px;
}

.faq-item {
    margin-bottom: 24px;
}

.faq-item h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 0;
}

/* Info Grid Layout */
.info-block-group {
    /* width: 400px; */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
    padding-top: 60px;
    margin: 0px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
}

/* Section Header Badges (h3) */
.info-block h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.contact-link {
    color: var(--accent-gold);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--text-muted);
}

.info-subtext, .address-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 6px;
}

.address-text span {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.social-links a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text-muted);
}

/* Enables smooth scrolling across the whole page */
html {
    scroll-behavior: smooth;
}

/* Mobile Breakpoint */
@media (max-width: 600px) {
    .contact-container {
        padding: 0 20px;
    }

    .contact-info h1 {
        font-size: 2.6rem;
    }

    .info-block-group {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 40px 25px;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 column on mobile screens */
    }

    .portfolio-header {
        padding: 20px 20px 30px 20px;
    }

    .portfolio-header h1 {
        font-size: 2.3rem;
    }

    .gallery-container {
        padding: 0 20px 80px 20px;
    }

    .item-media {
        height: 320px;
    }
    
    /* .logo-desktop {
        display: none !important;
    }

    .logo-mobile {
        display: block !important; 
        height: 65px;   
        width: auto;
    } */
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-container {
        padding: 15px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-placeholder h1 {
        font-size: 2.3rem;
    }

}
/* Fix gap caused by WordPress Admin Bar overlay */
html {
    margin-top: 0 !important;
}

body.admin-bar {
    margin-top: 0 !important;
}

/* If your header is fixed or sticky, offset it cleanly when admin bar is visible */
body.admin-bar .site-header {
    top: 32px; /* Moves fixed header below admin bar on desktop */
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px; /* Admin bar height on mobile */
    }
}