/* ===========================================
   NILE CALLIGRAPHY — HEADER
=========================================== */


/* ===========================================
   ANNOUNCEMENT BAR
=========================================== */

.announcement {
    background: var(--primary);

    color: var(--white);

    text-align: center;

    padding: 10px 20px;

    font-size: 13px;

    letter-spacing: 0.8px;

    font-weight: 400;

    border-bottom: 1px solid var(--border);
}


/* ===========================================
   MAIN HEADER
=========================================== */

.top-header {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    background: var(--white);

    padding: 24px 40px;

    border-bottom: 1px solid var(--border);
}


/* ===========================================
   HEADER TOOLS
=========================================== */

.left-tools,
.right-tools {
    display: flex;

    align-items: center;
}

.left-tools {
    justify-self: start;
}

.right-tools {
    justify-self: end;

    gap: 18px;
}


/* ===========================================
   HEADER BUTTONS
=========================================== */

.left-tools button,
.right-tools button {
    background: transparent;

    color: var(--primary);

    font-size: 20px;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;
}

.left-tools button:hover,
.right-tools button:hover {
    background: rgba(198, 161, 91, 0.12);

    color: var(--secondary);
}


/* ===========================================
   LOGO
=========================================== */

.logo {
    text-align: center;
}

.logo h1 {
    font-family: var(--heading);

    font-size: 32px;

    font-weight: 600;

    letter-spacing: 6px;

    color: var(--primary);

    line-height: 1;

    white-space: nowrap;
}


/* ===========================================
   NAVIGATION
=========================================== */

nav {
    background: var(--white);

    border-top: 1px solid #eeeeee;

    border-bottom: 1px solid #eeeeee;

    padding: 16px 20px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);

    position: relative;

    z-index: 10;
}

nav ul {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 45px;

    list-style: none;

    flex-wrap: wrap;

    max-width: 1000px;

    margin: 0 auto;
}


/* ===========================================
   NAVIGATION LINKS
=========================================== */

nav a {
    position: relative;

    text-decoration: none;

    color: var(--primary);

    font-family: var(--body);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.8px;

    padding-bottom: 6px;

    transition: 0.3s ease;
}


/* ===========================================
   NAVIGATION HOVER
=========================================== */

nav a::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 2px;

    background: var(--secondary);

    transition: 0.3s ease;
}

nav a:hover {
    color: var(--secondary);
}

nav a:hover::after {
    width: 100%;
}

/* Homepage navigation interactions */
@media (max-width: 768px) {
  #site-nav { display: none; }
  #site-nav.nav-open { display: block; }
  #site-nav.nav-open ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #site-nav.nav-open li { border-bottom: 1px solid var(--border); }
  #site-nav.nav-open a { display: block; padding: 13px 5px; font-size: 14px; }
}
.menu-btn[aria-expanded="true"] { color: var(--secondary); }
