
/* Used by notificationmodal.css */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/*
   SKIP LINK + PAGE CONTENT
 */

.skip-link {
    position: absolute;
    left: 12px;
    top: -64px;
    z-index: 2000;
    padding: 12px 16px;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font: 500 15px/1.2 'DM Sans', sans-serif;
    text-decoration: none;
}

.skip-link:focus { top: 12px; color: #fff; }

.container_body { padding-top: 32px; }
.container_body:focus { outline: none; }

/* Keeps focused fields and #anchors clear of the sticky header (120px on desktop, 64px below 992px) */
html { scroll-padding-top: 136px; }

@media (max-width: 991.98px) {
    .container_body { padding-top: 24px; }
    html { scroll-padding-top: 80px; }
}

/*
   HEADER
 */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: transform 0.25s ease;
}

/* Below 992px header.js slides it away while scrolling down */
.site-header.is-hidden { transform: translateY(-100%); }

@media (prefers-reduced-motion: reduce) {
    .site-header { transition: none; }
}

/*
   TOP BAR (contact + auth)
 */

#navmini {
    background: #1a1a1a;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    flex-wrap: nowrap;
    gap: 0;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-contact a {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.topbar-contact a:hover { color: #fff !important; }
.topbar-contact i { font-size: 1rem; }

.topbar-auth {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar-auth .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.topbar-auth .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

.topbar-auth .btn-topbar-login {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75) !important;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    padding: 4px 12px !important;
    transition: all 0.15s ease;
}

.topbar-auth .btn-topbar-login:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    border-color: rgba(255,255,255,0.4);
}

.topbar-auth .btn-topbar-register {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fff;
    color: #1a1a1a !important;
    border-radius: 5px;
    padding: 4px 12px !important;
    transition: opacity 0.15s ease;
}

.topbar-auth .btn-topbar-register:hover { opacity: 0.85; }

/*
   MAIN NAVBAR
*/

#navbarmain {
    background: #f7f5f2;
    border-bottom: 1px solid #ebe8e3;
    padding: 0 20px;
    min-height: 60px;
}

#navbarmain .navbar-brand img {
    height: 42px;
    display: block;
}

#navbarmain .navbar-nav .nav-link {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555 !important;
    padding: 6px 14px !important;
    border-radius: 6px;
    transition: all 0.15s ease;
}

#navbarmain .navbar-nav .nav-link:hover {
    color: #1a1a1a !important;
    background: #efebe5;
}

#navbarmain .navbar-nav .nav-link.active,
#navbarmain .navbar-nav .nav-link[aria-current="page"] {
    color: #1a1a1a !important;
    background: #e9e4dc;
}

#navbarmain .navbar-nav .nav-link:focus-visible,
.topbar-contact a:focus-visible,
.topbar-auth .nav-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Phone/tablet controls are hidden on desktop; desktop links are hidden below 992px */
.header-actions { display: none; }

/*
   PHONES AND TABLETS: one slim bar (logo, main action, menu)
*/

@media (max-width: 991.98px) {

    #navmini,
    .site-nav-desktop { display: none !important; }

    #navbarmain {
        min-height: 64px;
        padding: 0 4px;
    }

    #navbarmain .navbar-brand img { height: 40px; width: auto; }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    .header-action {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 16px;
        border: 1px solid #e4e0da;
        border-radius: 10px;
        background: #fff;
        color: #1a1a1a;
        font: 500 15px/1 'DM Sans', sans-serif;
        text-decoration: none;
        white-space: nowrap;
    }

    .header-action:hover { background: #efebe5; color: #1a1a1a; }

    .header-action-primary {
        border-color: #1a1a1a;
        background: #1a1a1a;
        color: #fff;
    }

    .header-action-primary:hover { background: #333; color: #fff; }
}

.menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e4e0da;
    border-radius: 10px;
    background: #fff;
}

.menu-button:hover { background: #efebe5; }

.menu-button-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}

.menu-button-bars span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #1a1a1a;
}

.header-action:focus-visible,
.menu-button:focus-visible,
.site-menu-close:focus-visible,
.site-menu-link:focus-visible,
.site-menu-button:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/*
   MENU (slide-in panel, phones and tablets)
*/

.site-menu.offcanvas {
    width: min(86vw, 360px);
    border-left: none;
    font-family: 'DM Sans', sans-serif;
}

.site-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 12px 0 20px;
    border-bottom: 1px solid #ebe8e3;
}

.site-menu-title {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
}

.site-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #1a1a1a;
    font-size: 1.25rem;
}

.site-menu-close:hover { background: #f7f5f2; }

.site-menu-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 8px 12px 24px;
}

.site-menu-greeting {
    margin: 8px 8px 4px;
    color: #6b645b;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.site-menu-greeting strong { color: #1a1a1a; font-weight: 500; }

.site-menu-heading {
    margin: 20px 8px 6px;
    color: #6b645b;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 16px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-menu-link i { width: 18px; color: #6b645b; text-align: center; }

.site-menu-link:hover { background: #f7f5f2; color: #1a1a1a; }

.site-menu-link[aria-current="page"] {
    background: #f0ede8;
    font-weight: 600;
}

.site-menu-auth {
    display: grid;
    gap: 10px;
    padding: 4px 8px 0;
}

.site-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.site-menu-button:hover { background: #f7f5f2; color: #1a1a1a; }

.site-menu-button-primary { background: #1a1a1a; color: #fff; }
.site-menu-button-primary:hover { background: #333; color: #fff; }

/*
   NOTIFICATION MODAL
 */

#messageModal .modal-content {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e4e0da;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.12);
    overflow: hidden;
}

#messageModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #f0ede8;
    background: #fff;
}

#messageModal .modal-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
}

#messageModal .btn-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e4e0da;
    background: #faf9f7;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    transition: all 0.15s ease;
    padding: 0;
}

#messageModal .btn-close:hover {
    background: #f0ede8;
    border-color: #d8d4ce;
    color: #333;
}

#messageModal .modal-body {
    padding: 18px 22px 22px;
    background: #fff;
}

#messageModal .alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 8px;
    border: 1px solid transparent;
    animation: alert-in 0.28s ease both;
}

#messageModal .alert:last-child { margin-bottom: 0; }

@keyframes alert-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#messageModal .alert-success  { background: #f0faf4; border-color: #c6e9d4; color: #2d6a47; }
#messageModal .alert-danger,
#messageModal .alert-error    { background: #fdf3f3; border-color: #f0c8c8; color: #8b2f2f; }
#messageModal .alert-warning  { background: #fffbf0; border-color: #f0e0a0; color: #7a5c10; }
#messageModal .alert-info,
#messageModal .alert-messages { background: #f2f7fd; border-color: #c2d8f2; color: #1e4d80; }