/* =========================================================
   MASTER PHOTOGRAPHER - STANDARD PAGE HEADER
   Menu pages common title/subtitle spacing
   ========================================================= */

.page-header-standard {
    width: min(1150px, calc(100% - 40px));
    margin: 0 auto 22px;
    padding-top: 34px;
    text-align: center;
}

.page-header-title {
    margin: 0 0 3px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--text-main);
}

.page-header-subtitle {
    max-width: 760px;
    margin: 0 auto 14px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-muted, #64748b);
}

.page-content-standard {
    width: min(1150px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   PUBLIC EMPTY MESSAGE STANDARD
   Same design for all empty states on public pages
========================================================= */

.public-empty-message,
.blog-empty,
.videos-page-empty,
.client-galleries-empty,
.flipbooks-empty,
.bbp-empty,
.portfolio-empty,
.testimonials-empty,
.testimonial-empty {
    width: min(1200px, calc(100% - 48px)) !important;
    min-height: 86px !important;
    margin: 0 auto 36px !important;
    padding: 28px 18px !important;

    border: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: var(--card-form, #ffffff) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04) !important;

    color: var(--text-muted) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 1.45 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    box-sizing: border-box !important;
}

/* =========================================================
   MASTER PHOTOGRAPHER - GLOBAL VITRINE HEADER / MENU / FOOTER
   Shared by storefront and client pages
   ========================================================= */

.vitrine-layout {
    min-height: 100vh;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
}

.site-header {
    width: 100%;
    background: var(--header-menu, #050505);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}
.site-header-inner {
    width: 100%;
    min-height: max(55px, var(--site-logo-height, 60px));
    padding: 0 24px;
    display: grid;
    grid-template-columns: var(--site-logo-column, 240px) 1fr 160px;
    align-items: center;
    column-gap: 20px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: var(--header-menu-text, #ffffff);
    letter-spacing: .02em;
    white-space: nowrap;
    margin-left: 0;
}

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

.site-logo-img {
    width: var(--site-logo-width, 180px);
    height: var(--site-logo-height, 60px);
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.site-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.site-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-family: var(
        --vitrine-heading-font,
        Arial,
        Helvetica,
        sans-serif
    ) !important;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--header-menu-text, #ffffff);
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease;
}

.site-menu-link:hover,
.site-menu-link.tab-active {
    background: transparent !important;
    color: var(--brand) !important;
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.language-link {
    font-size: 20px;
    line-height: 1;
    color: var(--header-menu-text, #ffffff);
    opacity: .55;
    transition: opacity .2s ease, transform .2s ease;
}

.language-link:hover {
    opacity: 1;
    transform: scale(1.08);
}

.language-link.active {
    opacity: 1;
}

/* =========================================================
   MASTER PHOTOGRAPHER - COMPACT LANGUAGE DROPDOWN
   4 or more active languages
   ========================================================= */

.language-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.language-dropdown-toggle {
    width: 44px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--header-menu-text, #ffffff);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    cursor: pointer;
    box-shadow: none;
}

.language-dropdown-toggle:hover,
.language-dropdown.is-open .language-dropdown-toggle {
    background: transparent;
    color: var(--brand);
}

.language-dropdown-current-flag {
    font-size: 20px;
    line-height: 1;
}

.language-dropdown-arrow {
    font-size: 9px;
    line-height: 1;
    color: currentColor;
    transition: transform .2s ease;
}

.language-dropdown.is-open .language-dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-panel {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 1000;

    width: 120px;
    max-height: 400px;
    padding: 4px;

    display: flex;
    flex-direction: column;
    gap: 2px;

    overflow-y: auto;

    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--card-form, #ffffff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
}

.language-dropdown-panel[hidden] {
    display: none !important;
}

.language-dropdown-option {
    width: 100%;
    min-height: 22px;
    padding: 5px 7px;

    display: flex;
    align-items: center;
    gap: 7px;

    border: 0;
    background: transparent;
    color: var(--text-main);

    font-family: var(
        --vitrine-body-font,
        Arial,
        Helvetica,
        sans-serif
    ) !important;

    font-size: 11px !important;
    line-height: 1.2;
    font-weight: 600 !important;
    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}

.language-dropdown-option:hover,
.language-dropdown-option.active {
    background: var(--brand);
    color: var(--on-brand, #ffffff);
}

.language-dropdown-option-flag {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
}

.language-dropdown-option-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .language-dropdown-panel {
        width: 170px;
        max-width: calc(100vw - 24px);
        max-height: 270px;
    }
}

.site-footer {
    margin-top: 0;
    background: var(--footer-color, #ffffff);
    border-top: 0;
}

.site-footer-inner {
    width: min(1600px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 96px;
    padding: 18px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.site-footer-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer-menu-link {
    display: inline-flex;
    align-items: center;
    color: var(--footer-text, var(--text-muted));
    font-family: var(
        --vitrine-heading-font,
        Arial,
        Helvetica,
        sans-serif
    ) !important;
    font-size: 14px;
    font-weight: 500 !important;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer-menu-link:hover {
    color: var(--brand);
}

.site-footer-bottom {
    width: 100%;
    text-align: center;
    color: var(--footer-text, var(--text-main));
    font-family: var(
        --vitrine-heading-font,
        Arial,
        Helvetica,
        sans-serif
    ) !important;
    font-size: 12px;
    font-weight: 500;
}

.site-footer-social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.site-footer-social-link {
    min-width: 32px;
    height: 32px;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    transition: color .2s ease, transform .2s ease;
}

.site-footer-social-link i {
    font-size: 26px;
    line-height: 1;
}

.site-footer-social-link:hover {
    color: var(--brand-dark);
    transform: translateY(-1px);
}


@media (max-width: 768px) {
    .public-empty-message,
    .blog-empty,
    .videos-page-empty,
    .client-galleries-empty,
    .flipbooks-empty,
    .bbp-empty,
    .portfolio-empty,
    .testimonials-empty,
    .testimonial-empty {
        width: min(100% - 28px, 1200px) !important;
        min-height: 78px !important;
        padding: 24px 14px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 560px) {
    .page-header-standard {
        width: min(100%, calc(100% - 24px));
        margin-bottom: 18px;
        padding-top: 26px;
    }

    .page-header-title {
        font-size: 18px;
    }

    .page-header-subtitle {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .page-content-standard {
        width: min(100%, calc(100% - 24px));
    }
}

/* =========================================================
   MASTER PHOTOGRAPHER - VITRINE GLOBAL FONT SETTINGS
   Only public storefront typography
   ========================================================= */

body {
    margin: 0;
    font-family: var(
        --vitrine-body-font,
        Arial,
        Helvetica,
        sans-serif
    );
    background: var(--bg-soft);
    color: var(--text-main);
}

button,
input,
select,
textarea {
    font-family: var(
        --vitrine-body-font,
        Arial,
        Helvetica,
        sans-serif
    );
}

/* Main public headings */
h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.section-title,
.page-header-title,
.home-blog-title,
.blog-title,
.portfolio-title,
.gallery-title,
.flipbook-title,
.video-title,
.testimonial-title,
.faq-title,
.contact-title,
.about-title {
    font-family: var(
        --vitrine-heading-font,
        Arial,
        Helvetica,
        sans-serif
    ) !important;
}
/* All public vitrine buttons use heading font */
.vitrine-layout button,
.vitrine-layout input[type="button"],
.vitrine-layout input[type="submit"],
.vitrine-layout input[type="reset"],
.vitrine-layout .btn,
.vitrine-layout [class$="-btn"],
.vitrine-layout [class*="-btn "],
.vitrine-layout [role="button"] {
    font-family: var(
        --vitrine-heading-font,
        Arial,
        Helvetica,
        sans-serif
    ) !important;
}
/* Public vitrine navigation links use heading font */
.vitrine-layout .blog-detail-link {
    font-family: var(
        --vitrine-heading-font,
        Arial,
        Helvetica,
        sans-serif
    ) !important;
}
