/* Ami Beauty custom site header. */

.ami-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    color: #445543;
    background: #F2EDE5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
}

.ami-site-header__inner {
    height: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 7%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.ami-site-header__divider {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ami-site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.ami-site-header__brand-word {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 300;
    font-size: 26px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: inherit;
    text-transform: uppercase;
}

.ami-site-header__nav {
    justify-self: center;
}

.ami-site-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 36px;
}

.ami-site-header__menu li {
    margin: 0;
}

.ami-site-header__menu a {
    color: inherit;
    text-decoration: none;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.ami-site-header__menu a:hover {
    opacity: 1;
}

.ami-site-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.ami-site-header__book {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    color: #445543;
    padding: 12px 26px;
    border-radius: 3px;
    text-decoration: none;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ami-site-header__book:hover {
    transform: translateY(-1px);
    background: #FAF6F1;
}

.ami-site-header__lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.ami-site-header__lang ul {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ami-site-header__lang li {
    margin: 0;
}

.ami-site-header__lang a,
.ami-site-header__lang-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
}

.ami-site-header__lang li.current-lang a,
.ami-site-header__lang-link.is-active {
    font-weight: 700;
    opacity: 1;
}

.ami-site-header__lang-sep {
    opacity: 0.4;
    margin: 0 4px;
}

.ami-site-header__burger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    color: inherit;
}

.ami-site-header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Transparent state — only on the homepage and only before the user has scrolled
   past the hero. Sub-pages never get this; they use the solid base above. */
.ami-site-header--has-transparent:not(.ami-site-header--scrolled) {
    color: #FFFFFF;
    background: transparent;
    box-shadow: none;
}

.ami-site-header--has-transparent:not(.ami-site-header--scrolled) .ami-site-header__divider {
    opacity: 1;
}

/* Push page content below the fixed header. */
body {
    /* Header is fixed; if the first block is the hero (full-bleed), it sits underneath the transparent header by design. */
}

/* Mobile drawer. */
.ami-site-drawer {
    position: fixed;
    inset: 80px 0 0 0;
    background: #FAF6F1;
    color: #445543;
    z-index: 999;
    overflow-y: auto;
}

.ami-site-drawer[hidden] {
    display: none;
}

.ami-site-drawer__inner {
    padding: 32px 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ami-site-drawer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ami-site-drawer__menu li {
    margin: 0;
}

.ami-site-drawer__menu a {
    display: block;
    color: #445543;
    text-decoration: none;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 0;
    border-bottom: 1px solid rgba(42, 31, 26, 0.1);
}

.ami-site-drawer__menu li:last-child a {
    border-bottom: 0;
}

.ami-site-drawer__book {
    align-self: stretch;
    background: #445543;
    color: #FAF6F1;
    padding: 16px 32px;
    border-radius: 0;
    text-decoration: none;
    text-align: center;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ami-site-drawer__lang {
    display: flex;
    gap: 12px;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ami-site-drawer__lang ul {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ami-site-drawer__lang li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ami-site-drawer__lang a {
    color: #445543;
    text-decoration: none;
    opacity: 0.6;
}

.ami-site-drawer__lang li.current-lang a {
    opacity: 1;
    font-weight: 700;
}

body.ami-drawer-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .ami-site-header__inner {
        padding: 0 20px;
        grid-template-columns: 1fr auto;
        gap: 12px;
    }
    .ami-site-header__nav,
    .ami-site-header__right {
        display: none;
    }
    .ami-site-header__burger {
        display: inline-flex;
    }
}

/* Suppress GeneratePress's default header if it still gets emitted somehow. */
.site-header.generate-header,
.site-header > .inside-header {
    display: none !important;
}
