/* --- NEW HEADER COMPONENT STYLES --- */
:root {
    --bg: #FFFFFF;
    --ink: #060507;
    --muted: #5D5257;
    --nav-outline: rgba(6, 5, 7, 0.12);
    --pill-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --pill-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.1);
    --radius-pill: 9999px;
    --focus-outline-color: rgba(6, 5, 7, 0.35);
}

/* --- Base Header Layout --- */
.site-header {
    position: sticky;
    top: 0;
    /* Stick to the very top */
    z-index: 50;
    padding: 0 14px;
    /* Mobile-first padding */
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    overflow: visible;
}

.site-header.is-scrolling {
    background-color: rgba(255, 255, 255, 0.65);
    /* Lower opacity for more blur visibility */
    backdrop-filter: blur(16px);
    /* Increased blur radius */
    -webkit-backdrop-filter: blur(16px);
    /* For Safari */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 10px;
    transition: padding-top 0.35s ease;
    overflow: visible;
}

.site-header.is-scrolling .header-container {
    padding-top: 20px;
}

.site-header.is-scrolling .primary-nav {
    background: rgba(255, 255, 255, 0.14);
}

/* --- Brand Mark (Left) --- */
.brand-mark {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: auto;
    text-decoration: none;
    position: relative;
}

.brand-logo {
    height: 50px;
    /* Control logo size */
    width: auto;
    z-index: 10;
}

.brand-ribbon {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    width: 60px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.brand-mark:hover .brand-ribbon {
    opacity: 1;
}

/* --- Primary Navigation (Desktop) --- */
.primary-nav {
    display: none;
    /* Hidden on mobile */
    background: transparent;
    border-radius: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(239, 23, 165, 0.5);
    height: 60px;
    padding: 0 10px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
    padding: 0;
    margin: 0;
    height: 100%;
}

.nav-list li {
    display: flex;
    align-items: center;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    /* Half of the doubled gap */
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    position: relative;
    border-radius: 9999px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    background-color: rgba(93, 82, 87, 0.35);
    color: var(--ink);
}

.nav-list a::after {
    display: none;
}

.nav-list a[aria-current="page"] {
    font-weight: 700;
}

/* --- Header Actions (Right) --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    /* Mobile height */
    padding: 0 28px;
    /* Wider mobile padding */
    border-radius: 12px;
    background-color: transparent;
    color: var(--ink);
    font-size: 14px;
    /* Smaller text */
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.contact-pill:hover {
    background-color: rgba(255, 255, 255, 0.28);
    color: var(--ink);
}

.nav-list .contact-pill {
    display: inline-flex;
    height: 42px;
    padding: 0 14px;
    margin-left: 0;
    border: none;
    background-color: #7BBCB0;
    color: #ffffff;
    box-shadow: none;
}

.nav-list .contact-pill:hover,
.nav-list .contact-pill[aria-current="page"] {
    background-color: #C4687E;
    color: #ffffff;
}

.nav-list .contact-pill::after {
    display: none;
}

/* --- Hamburger --- */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--ink);
    border-radius: 2px;
}

/* --- Mobile Nav Sheet --- */
.mobile-nav-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-sheet.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 24px;
    /* Increased spacing */
}

.mobile-nav a {
    display: inline-block;
    padding: 12px 32px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Contact button in mobile nav - highlighted style */
.mobile-nav .mobile-contact-btn {
    background-color: #E8A0B0;
    border-color: #C4687E;
    color: #ffffff;
    font-weight: 700;
}

.mobile-nav .mobile-contact-btn:hover {
    background-color: #E8A0B0;
    border-color: #C4687E;
}

.close-nav-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 40px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}

/* --- Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--focus-outline-color);
    outline-offset: 2px;
    border-radius: 4px;
    /* Make focus more apparent */
}

.contact-pill:focus-visible {
    outline-color: white;
    /* Better contrast on dark bg */
}

/* --- Tablet & Desktop Styles --- */
@media (min-width: 1024px) {
    .site-header {
        top: 0;
        /* Stick to the very top */
        padding: 0 64px;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .brand-mark {
        justify-self: start;
    }

    .primary-nav {
        display: block;
        justify-self: center;
    }

    .header-actions {
        justify-self: end;
    }

    .hamburger-btn {
        display: none;
    }

    .contact-pill {
        height: 42px;
        padding: 0 14px;
    }
}

/* --- Tablet-only for padding --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .site-header {
        padding: 0 40px;
    }
}

/* --- Body scroll lock --- */
body.no-scroll {
    overflow: hidden;
}

/* --- Theme Toggle --- */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(6, 5, 7, 0.18);
    background: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1f2a44;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.86);
}

body.dark-mode .theme-toggle {
    color: rgba(255, 255, 255, 0.82);
}

.att-svg {
    overflow: visible;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-mode .att-svg {
    transform: rotate(270deg);
}

.att-mask-circle {
    transition: cx 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), cy 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-mode .att-mask-circle {
    cx: 17px;
    cy: 8px;
}

.att-center-circle {
    transition: r 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-mode .att-center-circle {
    r: 9px;
}

.att-rays {
    transform-origin: 12px 12px;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-mode .att-rays {
    opacity: 0;
    transform: scale(0) rotate(-30deg);
}


