/* ============================================================
   Sentinel Custom Widgets — Front-end Styles
   Brand: #141413 dark | #9e0b00 red | #b5b8bc steel | #faf9f5 light
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Subscribe Widget ──────────────────────────────────────── */
.sentinel-subscribe-widget {
    background-color: #141413;
    border: 2px solid #9e0b00;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    font-family: 'Lora', Georgia, serif;
    position: relative;
    box-shadow: 0 4px 24px rgba(158, 11, 0, 0.18);
}

/* Subtle corner accent lines */
.sentinel-subscribe-widget::before,
.sentinel-subscribe-widget::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #9a7a3a;
    border-style: solid;
}
.sentinel-subscribe-widget::before {
    top: 8px;
    left: 8px;
    border-width: 2px 0 0 2px;
}
.sentinel-subscribe-widget::after {
    bottom: 8px;
    right: 8px;
    border-width: 0 2px 2px 0;
}

/* Icon */
.sentinel-subscribe-icon {
    font-size: 32px;
    color: #9e0b00;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(158,11,0,0.5));
}

/* Heading */
.sentinel-subscribe-heading {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #faf9f5;
    margin: 0 0 10px 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Subheading */
.sentinel-subscribe-subheading {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: #b5b8bc;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* Form row */
.sentinel-subscribe-form-wrap {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid #2e2e2e;
    border-radius: 3px;
    overflow: hidden;
}

/* Email input */
.sentinel-subscribe-input {
    flex: 1;
    background: #1e1e1d;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: #faf9f5;
    transition: background 0.2s;
}
.sentinel-subscribe-input::placeholder {
    color: #5a5a5a;
}
.sentinel-subscribe-input:focus {
    background: #252524;
}
.sentinel-subscribe-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Subscribe button */
.sentinel-subscribe-btn {
    background-color: #9e0b00;
    color: #faf9f5;
    border: none;
    padding: 14px 24px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}
.sentinel-subscribe-btn:hover {
    background-color: #7a0900;
}
.sentinel-subscribe-btn:active {
    transform: scale(0.98);
}
.sentinel-subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success / Error message */
.sentinel-subscribe-message {
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 3px;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9rem;
    display: none;
}
.sentinel-subscribe-message--visible {
    display: block !important;
}
.sentinel-subscribe-message.success {
    background: rgba(74, 124, 74, 0.15);
    border: 1px solid #4a7c4a;
    color: #7ecf7e;
}
.sentinel-subscribe-message.error {
    background: rgba(158, 11, 0, 0.15);
    border: 1px solid #9e0b00;
    color: #e06060;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 540px) {
    .sentinel-subscribe-widget {
        padding: 28px 20px;
    }
    .sentinel-subscribe-form-wrap {
        flex-direction: column;
    }
    .sentinel-subscribe-btn {
        width: 100%;
        padding: 14px;
    }
    .sentinel-subscribe-heading {
        font-size: 1.3rem;
    }
}


/* ============================================================
   Sentinel Navbar Widget  v1.1
   ============================================================ */

/* ── Base nav bar ──────────────────────────────────────────── */
.snl-nav {
    background-color: #141413;
    border-bottom: 2px solid #9e0b00;
    position: relative;
    z-index: 9999;
    width: 100%;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
    font-family: 'Poppins', Arial, sans-serif;
}

.snl-nav--sticky {
    position: sticky;
    top: 0;
}

.snl-nav--scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    background-color: rgba(20,20,19,0.97);
}

.snl-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 70px;
    gap: 24px;
}

/* ── Logo ──────────────────────────────────────────────────── */
.snl-nav__logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.snl-nav__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.snl-nav__logo img {
    width: 220px;
    height: auto;
    display: block;
}
.snl-nav__logo-text {
    color: #faf9f5;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.snl-nav__tagline {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9a7a3a;
    margin-top: 2px;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    padding-left: 2px;
}

/* ── Desktop menu row ──────────────────────────────────────── */
.snl-nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.snl-nav__item {
    position: relative;
}

/* Links and dropdown toggles share base style */
.snl-nav__link,
.snl-nav__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    color: #faf9f5;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1;
}
.snl-nav__link:hover,
.snl-nav__dropdown-toggle:hover,
.snl-nav__item--open > .snl-nav__dropdown-toggle {
    color: #9e0b00;
}

/* CTA link */
.snl-nav__link--cta {
    background-color: #9e0b00;
    color: #faf9f5 !important;
    padding: 8px 16px;
    border-radius: 2px;
    margin-left: 8px;
}
.snl-nav__link--cta:hover {
    background-color: #7a0900;
    color: #faf9f5 !important;
}

/* Chevron animation */
.snl-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.snl-nav__item--open > .snl-nav__dropdown-toggle .snl-chevron {
    transform: rotate(180deg);
}

/* ── Dropdown panel ────────────────────────────────────────── */
.snl-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a18;
    border: 1px solid #2e2e2e;
    border-top: 2px solid #9e0b00;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    min-width: 220px;
    z-index: 10000;
    animation: snlFadeIn 0.15s ease;
}
.snl-dropdown--wide {
    min-width: 480px;
}

@keyframes snlFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.snl-nav__item--open > .snl-dropdown {
    display: block;
}

.snl-dropdown__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 20px;
}

.snl-dropdown__col {
    padding: 0 16px;
}
.snl-dropdown__col + .snl-dropdown__col {
    border-left: 1px solid #2e2e2e;
}

.snl-dropdown__heading {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a7a3a;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2e2e2e;
    font-family: 'Poppins', Arial, sans-serif;
}

.snl-dropdown__link {
    display: block;
    padding: 5px 0;
    color: #b5b8bc;
    font-size: 0.82rem;
    font-family: 'Lora', Georgia, serif;
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
    border-radius: 2px;
    white-space: nowrap;
}
.snl-dropdown__link:hover {
    color: #faf9f5;
    padding-left: 6px;
}

/* ── Action icons ──────────────────────────────────────────── */
.snl-nav__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.snl-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #b5b8bc;
    text-decoration: none;
    border-radius: 2px;
    transition: color 0.18s, background 0.18s;
}
.snl-nav__icon:hover {
    color: #faf9f5;
    background: rgba(255,255,255,0.06);
}

/* ── Hamburger ─────────────────────────────────────────────── */
.snl-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
}
.snl-nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #faf9f5;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.snl-nav__hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.snl-nav__hamburger--open span:nth-child(2) { opacity: 0; }
.snl-nav__hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    .snl-nav__hamburger {
        display: flex;
    }

    .snl-nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #141413;
        border-top: 1px solid #2e2e2e;
        border-bottom: 2px solid #9e0b00;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
        z-index: 9998;
    }

    .snl-nav__menu--open {
        display: flex;
    }

    .snl-nav__link,
    .snl-nav__dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 24px;
        border-radius: 0;
        font-size: 0.88rem;
    }

    .snl-nav__link--cta {
        margin: 8px 24px 0;
        width: calc(100% - 48px);
        justify-content: center;
    }

    /* Mobile dropdowns stack inline */
    .snl-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid #2e2e2e;
        border-radius: 0;
        background: #111110;
        min-width: unset;
        animation: none;
    }
    .snl-dropdown--wide {
        min-width: unset;
    }
    .snl-dropdown__cols {
        grid-template-columns: 1fr;
        padding: 8px 24px 16px;
        gap: 0;
    }
    .snl-dropdown__col {
        padding: 8px 0;
    }
    .snl-dropdown__col + .snl-dropdown__col {
        border-left: none;
        border-top: 1px solid #2e2e2e;
    }
    .snl-dropdown__link {
        padding: 6px 0;
        font-size: 0.85rem;
    }

    @keyframes snlFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
}

@media (max-width: 480px) {
    .snl-nav__inner {
        padding: 0 16px;
        min-height: 60px;
    }
    .snl-nav__logo img {
        width: 160px;
    }
    .snl-nav__tagline {
        display: none;
    }
}
