/* Styles for the new site: language toggle + options modal + donation result views.
   Loaded after styles.css / plans.css / qr-landing.css. */

/* ---------- Hero description: stay readable over the photo ----------
   The grey text sat directly on the background photo and faded on light areas (mobile especially).
   Dark text + semi-opaque cream panel keeps contrast high wherever the photo is bright. */
.hero-description {
    display: inline-block;
    max-width: 38rem;
    color: #2b2750;
    font-weight: 600;
    background: rgba(250, 242, 224, 0.88);
    padding: 1rem 1.4rem;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(82, 69, 148, 0.18);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
@media (max-width: 768px) {
    .hero-description { font-size: 1.05rem; line-height: 1.6; padding: 0.9rem 1.1rem; }
}

/* ---------- Language toggle (EN | ES) ---------- */
.nav-links .lang-switch {
    display: inline-flex;
    border: 1.5px solid #524594;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    gap: 0;
}
.lang-switch button {
    background: transparent;
    color: #524594;
    border: 0;
    padding: 0.28rem 0.7rem;
    font: 600 0.78rem/1 inherit;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { background: #f0edfa; }
.lang-switch button[aria-pressed="true"] { background: #524594; color: #FAF2E0; }
.lang-switch button:focus-visible { outline: 2px solid #524594; outline-offset: -2px; }

/* ---------- Options modal ---------- */
.promo-modal-options {
    max-width: 460px;
    padding: 2.2rem 1.8rem 1.6rem;
    max-height: 92vh;
    overflow-y: auto;
}
.promo-view[hidden] { display: none; }
.promo-logo { width: 56px; height: auto; margin: 0 auto 0.6rem; display: block; }
.promo-modal-options h2 {
    color: #524594;
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0 0 0.35rem;
}
.promo-sub { color: #666; font-size: 0.95rem; margin: 0 0 1.3rem; }
.promo-options { display: flex; flex-direction: column; gap: 0.75rem; }
.promo-option {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    text-align: left;
    padding: 0.9rem 1rem;
    border: 2px solid #e7e3f3;
    border-radius: 14px;
    background: #fff;
    color: #2b2b33;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.promo-option:hover,
.promo-option:focus-visible {
    border-color: #524594;
    background: #f6f3fd;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(82, 69, 148, 0.15);
    outline: none;
}
.promo-option-icon {
    flex: 0 0 2.7rem;
    width: 2.7rem;
    height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #f0edfa;
    border-radius: 50%;
}
.promo-option-text strong { display: block; color: #524594; font-size: 1.02rem; margin-bottom: 0.1rem; }
.promo-option-text small { display: block; color: #666; font-size: 0.82rem; line-height: 1.35; }

/* Primary choice: schedule an appointment */
.promo-option--primary { background: #524594; border-color: #524594; }
.promo-option--primary .promo-option-icon { background: rgba(255, 255, 255, 0.18); }
.promo-option--primary .promo-option-text strong { color: #FAF2E0; }
.promo-option--primary .promo-option-text small { color: rgba(250, 242, 224, 0.85); }
.promo-option--primary:hover,
.promo-option--primary:focus-visible { background: #3d3470; border-color: #3d3470; }

.promo-modal-options .promo-dismiss { margin-top: 1rem; padding: 0.4rem 0.8rem; }

/* Options that are <button>s (open another view) look the same as the link options */
button.promo-option { width: 100%; font: inherit; cursor: pointer; }

/* ---------- Forms and slot picker inside the modal (donate link, investors, Web Summit) ---------- */
.ns-form { text-align: left; }
.ns-field { margin-bottom: 0.8rem; }
.ns-field label { display: block; font-size: 0.82rem; color: #555; margin-bottom: 0.3rem; }
.ns-field input,
.ns-field textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font: inherit;
    font-size: 0.92rem;
    box-sizing: border-box;
}
.ns-field input:focus,
.ns-field textarea:focus { outline: 2px solid #524594; outline-offset: 1px; border-color: #524594; }
.ns-field textarea { resize: vertical; }
.ns-amount-row { display: flex; gap: 0.5rem; }
.ns-amount-row select {
    flex: 0 0 auto;
    padding: 0.6rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.92rem;
}
.ns-amount-row select:focus { outline: 2px solid #524594; outline-offset: 1px; border-color: #524594; }
.ns-amount-row input { flex: 1 1 auto; min-width: 0; }
.ns-error { color: #b3261e; font-size: 0.85rem; text-align: center; margin: 0 0 0.8rem; }
.ns-error[hidden] { display: none; }
.ns-muted { color: #666; text-align: center; font-size: 0.9rem; }
.ns-form .promo-btn { width: 100%; }
.ns-form .promo-btn:disabled { opacity: 0.6; cursor: default; }

.ns-notice {
    background: #f0edfa;
    color: #3d3470;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0.2rem 0 0.5rem;
}
.ns-tz { color: #666; font-size: 0.8rem; margin: 0 0 1rem; }
.ns-slots { text-align: left; margin-bottom: 1rem; max-height: 38vh; overflow-y: auto; }
.ns-day { font-weight: 600; color: #333; margin: 0 0 0.45rem; }
.ns-slot-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.ns-slot {
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    border: 2px solid #524594;
    background: #fff;
    color: #524594;
    font: 500 0.85rem/1 inherit;
    font-family: inherit;
    cursor: pointer;
}
.ns-slot:hover,
.ns-slot:focus-visible { background: #f0edfa; outline: none; }
.ns-slot.is-selected { background: #524594; color: #fff; }
.ns-slot:disabled {
    border-color: #eee;
    background: #f5f5f5;
    color: #767676;
    text-decoration: line-through;
    cursor: not-allowed;
}
.ns-selected { text-align: center; font-weight: 600; color: #524594; margin: 0 0 0.6rem; }
.ns-note {
    text-align: center;
    background: #f0edfa;
    color: #3d3470;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
    margin: 0 0 1rem;
}
.ns-note:empty { display: none; }

/* ---------- Donation result views ---------- */
.promo-state { padding: 0.8rem 0.4rem 0.4rem; }
.promo-state-icon { font-size: 3.2rem; line-height: 1; margin-bottom: 0.7rem; }
.promo-state p { color: #555; font-size: 1rem; line-height: 1.6; margin: 0 0 1.4rem; }
.promo-state-actions { display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; }
.promo-btn {
    display: block;
    background: #524594;
    color: #FAF2E0;
    border: 2px solid #524594;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    font: 600 1rem/1.2 inherit;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.promo-btn:hover, .promo-btn:focus-visible { background: #3d3470; border-color: #3d3470; outline: none; }
.promo-btn--ghost { background: #fff; color: #524594; }
.promo-btn--ghost:hover, .promo-btn--ghost:focus-visible { background: #f0edfa; color: #3d3470; }

/* ---------- Navigation width ----------
   The English labels and the EN/ES toggle make the bar wider than the original Spanish-only one,
   so the hamburger menu (originally <=768px in styles.css) now starts at 1120px, and the bar is
   tightened a little just above that. Rules mirror styles.css's mobile block. */
@media (min-width: 1121px) and (max-width: 1240px) {
    .nav-links { gap: 1.1rem; }
}
@media (max-width: 1120px) {
    .nav-links {
        display: flex;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        overflow-y: auto;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 1rem 0; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    .nav-links .lang-switch { align-self: center; margin: 0.4rem auto; }
}
@media (max-width: 480px) {
    .promo-modal-options { padding: 1.8rem 1.1rem 1.2rem; }
    .promo-modal-options h2 { font-size: 1.3rem; }
}
