
/* ========================================
   FOTOICON - CUSTOM HEADER
======================================== */

/* Hide the original GeneratePress header */
.site-header,
#site-navigation,
.main-navigation {
    display: none !important;
}

/* Header container */
.fotoicon-header {
    position: relative;
    z-index: 999;
    width: 100%;
    background: var(--color-background);
}

.fotoicon-header-inner {
    max-width: var(--container-width);
    min-height: 96px;
    margin: 0 auto;
    padding: 0 var(--page-padding);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Text logo */
.fotoicon-logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -1.8px;
    line-height: 1;
    color: var(--color-text);
    text-decoration: none;
}

.fotoicon-logo span {
    color: #B7A68A;
}

/* Desktop navigation */
.fotoicon-nav ul {
    display: flex;
    align-items: center;
    gap: 38px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.fotoicon-nav li {
    list-style: none;
}

.fotoicon-nav a {
    position: relative;
    display: inline-block;

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text);
    text-decoration: none;

    transition: color var(--transition);
}

/* Subtle navigation hover */
.fotoicon-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width var(--transition);
}

.fotoicon-nav a:hover {
    color: var(--color-muted);
}

.fotoicon-nav a:hover::after {
    width: 100%;
}

/* Mobile menu button */
.fotoicon-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px;
}

.fotoicon-menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    margin: 6px 0;
    background: var(--color-text);
}

/* Mobile navigation */
.fotoicon-mobile-nav {
    display: none;
    padding: 10px var(--page-padding) 24px;
}

.fotoicon-mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fotoicon-mobile-nav li {
    list-style: none;
    padding: 12px 0;
}

.fotoicon-mobile-nav a {
    font-size: 14px;
    color: var(--color-text);
}

/* Responsive layout */
@media (max-width: 768px) {

    .fotoicon-header-inner {
        min-height: 76px;
    }

    .fotoicon-logo {
        font-size: 29px;
    }

    .fotoicon-nav {
        display: none;
    }

    .fotoicon-menu-toggle {
        display: block;
    }

    .fotoicon-mobile-nav.is-open {
        display: block;
    }
}

/* Sticky Fotoicon header */
.fotoicon-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--color-background, #F6F4E9);
    border-bottom: 1px solid var(--color-border, #E7E3D5);
}

/* Offset for the WordPress admin toolbar */
body.admin-bar .fotoicon-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .fotoicon-header {
        top: 46px;
    }
}

/* On small screens, the admin toolbar scrolls away */
@media (max-width: 600px) {
    body.admin-bar .fotoicon-header {
        top: 0;
    }
}

/* Compact sticky header */
.fotoicon-header {
    padding-block: 0;
}

.fotoicon-header .fotoicon-header-inner {
    padding-block: 12px;
    min-height: 0;
}

.fotoicon-header .fotoicon-logo {
    line-height: 1.1;
}

@media (max-width: 768px) {
    .fotoicon-header .fotoicon-header-inner {
        padding-block: 8px;
    }

    .fotoicon-header .fotoicon-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Support Fotoicon button */
.fotoicon-header .fotoicon-donate-link > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--color-text);
    color: var(--color-background);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color var(--transition), color var(--transition);
}

.fotoicon-header .fotoicon-donate-link > a:hover {
    background: var(--color-green);
    color: var(--color-text);
}

.fotoicon-header .fotoicon-donate-link > a:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
}

.fotoicon-nav .fotoicon-donate-link > a::after {
    display: none;
}

.fotoicon-mobile-nav .fotoicon-donate-link > a {
    min-height: 44px;
}