/* Base & typography */
* { box-sizing: border-box; }
:root {
    --header-border: #e8e8e8;
    --text-dark: #2c2c2c;
    --text-muted: #5a5a5a;
    --menu-icon: #2b97bd;
    --bg-light-blue: #bce4f1; /* light blue stripe / section bg */
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: var(--text-dark);
    font-size: 1rem;
}

a,
a:visited,
a:active {
    color: var(--menu-icon);
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #08465a; /* darker than --menu-icon */
}

.h1, h1 {
    font-size: 3.5rem;
    text-align: center;
}

.center {
    text-align: center;
}

/* Sticky header – always visible on scroll */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    /*border-top: 1px solid var(--header-border);*/
    border-bottom: 1px solid var(--header-border);
}
.site-header .navbar {
    padding: 1rem 0;
}
.site-header .container-fluid.container-lg {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Logo – left, constrained height */
.site-logo {
    padding: 0;
    margin: 0;
    line-height: 0;
}
.site-logo img {
    height: 42px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    display: block;
}

/* Desktop nav – right, uppercase, spaced */
.nav-menu {
    gap: 0.5rem;
}
.nav-menu .nav-link {
    font-size: 0.8rem;
    /* Same weight always so hover does not change glyph widths (no sibling shift). */
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 5px;
    text-underline-offset: 0.3em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link:focus {
    color: var(--text-dark);
    text-decoration-color: var(--menu-icon);
}
.nav-menu .dropdown-toggle::after {
    margin-left: 0.35rem;
    vertical-align: middle;
}
.nav-menu .dropdown-menu {
    border: 1px solid var(--header-border);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 0.5rem 0;
}
.nav-menu .dropdown-item {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
}

/* Mobile: hamburger on the right, blue icon */
.navbar-toggler,
.menu-toggler {
    border: none;
    outline: none;
    padding: 0 0.5rem;
    box-shadow: none;
    box-sizing: border-box;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.navbar-toggler:focus,
.menu-toggler:focus {
    border: none;
    outline: none;
    box-shadow: none;
}
/* Hamburger menu icon (animated X when open) */
.menu-toggler .menu-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.4rem;
    overflow: hidden;
}
.menu-toggler .hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.menu-toggler .dash1,
.menu-toggler .dash2,
.menu-toggler .dash3 {
    position: relative;
    height: 5px;
    width: 28px;
    background-color: var(--menu-icon);
    border-radius: 2.5px;
    margin-bottom: 5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.menu-toggler .dash3 {
    margin-bottom: 0;
}
.menu-toggler .hamburger.clicked .dash1 {
    transform: translateY(10px) rotate(135deg);
}
.menu-toggler .hamburger.clicked .dash2 {
    transform: translate(100vw);
}
.menu-toggler .hamburger.clicked .dash3 {
    transform: translateY(-10px) rotate(-135deg);
}
.navbar-collapse {
    margin-top: 0.75rem;
}
@media (max-width: 991.98px) {
    .site-header .navbar .container-fluid.container-lg {
        position: relative;
        display: block;
        padding-right: 3.25rem; /* reserve space for menu icon */
    }
    .site-logo {
        position: static;
        transform: none;
        display: block;
        width: 100%;
        margin: 0;
        padding-right: 0;
    }
    .site-logo img {
        margin: 0 auto;
    }
    .menu-toggler {
        position: absolute;
        top: 0rem;
        right: 0.5rem;
        transform: none;
        z-index: 2;
        margin-left: 0;
    }
    .navbar-collapse {
        width: 100%;
    }

    .nav-menu {
        align-items: center;
        text-align: center;
        padding: 0.5rem 0 0.75rem;
        gap: 0.25rem;
    }
    .nav-menu .nav-item {
        width: 100%;
    }
    .nav-menu .nav-link {
        display: block;
        width: 100%;
        font-size: 0.95rem;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }
}
@media (min-width: 992px) {
    .navbar-collapse {
        margin-top: 0;
    }
    .menu-toggler {
        display: none;
    }
}

/* Main content – responsive */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 50vh;
}
@media (min-width: 768px) {
    .main { padding: 2rem 1.5rem; }
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--header-border);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}
.footer-social a {
    color: var(--menu-icon);
    font-size: 1.35rem;
    text-decoration: none;
}
.footer-social a:hover {
    color: var(--text-dark);
}
.site-footer p {
    margin: 0;
}

/* Paintings page – category sections */
.paintings-category-title {
    /*font-size: 1.1rem;*/
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin: 8rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--header-border);
    text-align: center;
}
.paintings-category-title:first-of-type {
    margin-top: 4rem;
}

/* Paintings grid – responsive */
.work-grid {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .work-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
@media (min-width: 1024px) {
    .work-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
.work-grid li a {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    text-align: center;
}
.work-grid li a img {
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
}
.work-grid li a:hover img,
.work-grid li a:focus-visible img {
    transform: translateZ(0) scale(1.02);
}
.work-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
.work-grid .no-image {
    display: block;
    width: 100%;
    height: 240px;
    background: #eee;
    color: #999;
    text-align: center;
    line-height: 240px;
    font-size: 0.9rem;
}
.work-grid .title {
    display: block;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.work-grid .year {
    font-size: 0.85rem;
    color: var(--text-muted);
}
/* Extra spacing between items on small screens */
@media (max-width: 767.98px) {
    .work-grid li {
        margin-bottom: 2.5rem;
    }
}

/* Painting detail page */
.page-work-detail .back {
    margin-bottom: 1.5rem;
}
.page-work-detail .back a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.page-work-detail .back a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}
.page-work-detail .artwork {
    display: grid;
    gap: 2rem;
}
@media (min-width: 640px) {
    .page-work-detail .artwork {
        grid-template-columns: 1fr 1fr;
    }
}
.page-work-detail .artwork-image img {
    max-width: 100%;
    height: auto;
    display: block;
}
.page-work-detail .artwork-info h1 {
    margin-top: 0;
    font-size: 1.75rem;
    font-weight: 600;
}
.page-work-detail .dimensions,
.page-work-detail .availability,
.page-work-detail .signed {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.page-work-detail .description {
    margin-top: 1rem;
    /*font-weight: 500;*/
}
.page-work-detail .artwork-extra-images {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 480px) {
    .page-work-detail .artwork-extra-images {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .page-work-detail .artwork-extra-images {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}
.page-work-detail .artwork-extra {
    margin: 0;
}
.page-work-detail .artwork-extra img {
    width: 100%;
    height: auto;
    display: block;
}
.page-work-detail .artwork-extra figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Generic pages */
.page-404,
.page-general,
.page-about,
.page-contact {
    padding: 2rem 0;
}

h2 {
    margin-top: 4rem;
    margin-bottom: 2.5rem;
}

.text-block p {
    font-weight: 500;
}

.text-block {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2.5rem auto;
    line-height: 2;
}

.more-space {
    margin-top: 8rem !important;
}

/* on small screens */
@media (max-width: 767.98px) {
    .more-space {
        margin-top: 6rem !important;
    }
}

.lead {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Contact: image left, contacts right */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
}
.contact-layout__img {
    width: 100%;
    height: auto;
    display: block;
}
.contact-layout__contacts {
    min-width: 0;
}
.contact-layout__contacts .contact-rows {
    margin-top: 0;
}
@media (max-width: 767.98px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Contact page rows (icon + label + value) */
.contact-rows {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}
.contact-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.contact-icon {
    min-width: 2.25rem;
    text-align: center;
    color: var(--menu-icon);
    font-size: 1.35rem;
}
.contact-name {
    font-weight: 600;
    min-width: 6rem;
}

/* Full-bleed light stripe (used for emphasized page sections) */
.full-bleed-stripe {
    margin-top: 2.25rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 2.75rem 1rem;
    background: var(--bg-light-blue);
    background-image: var(--stripe-bg-image);
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.full-bleed-stripe::after {
    content: "";
    position: absolute;
    inset: 0;
    /*background: rgba(214, 236, 255, 0.82);  tint over background image */
    pointer-events: none;
}
.full-bleed-stripe .stripe-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.full-bleed-stripe p {
    margin: 0.75rem 0;
    color: var(--text-muted);
}

.radius-stripe {
    margin-top: 2.25rem;
    padding: 2.75rem 1rem;
    background: var(--bg-light-blue);
    text-align: center;
    position: relative;
    border-radius: 1rem;
}
.radius-stripe .stripe-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.radius-stripe p {
    margin: 0.75rem 0;
    color: var(--text-muted);
}

.radius-box {
    margin-top: 2.25rem;
    padding: 1.5rem 1.5rem;
    background: #f7f7f7; /* light gray */
    border-radius: 1rem;
}
.radius-box p {
    margin: 0.75rem 0;
    color: var(--text-muted);
}

/* 404 page nav (standalone) */
body .site-footer + script {
    display: none;
}

/* (Admin styles moved to admin.css) */
