/* ============================================================
   Intent Router — intent-router.css
   Link this once in your Master Page <head>.
   Do NOT scope these variables inside .ir-card — they are
   local to the component via the .ir-* namespace so they
   won't bleed into the rest of the page.
   ============================================================ */

/* ── Card ── */
.ir-card {
    background: #221405;
    border: 1px solid rgba(186,144,68,0.35);
    border-radius: 10px;
    width: 100%;
    padding: 2.4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

/* noise texture overlay */
.ir-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
}

/* top gold accent line */
.ir-card::after {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ba9044, transparent);
}

/* ── Header ── */
.ir-header {
    text-align: center;
    margin-bottom: 1.8rem;
    position: relative;
}

.ir-gavel {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.75rem;
    opacity: 0.9;
    display: block;
}

.ir-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 500;
    color: #ba9044;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.ir-subtitle {
    font-size: 0.8rem;
    color: #9b8a6e;
    margin-top: 0.4rem;
    letter-spacing: 0.03em;
    font-weight: 300;
}

/* ── Panels ── */
.ir-panel {
    display: none;
    position: relative;
}

.ir-panel.active {
    display: block;
    animation: irFadeSlideIn 0.32s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes irFadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Option Cards ── */
.ir-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ir-option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    background: #1a0e02;
    border: 1px solid rgba(186,144,68,0.35);
    border-left: 3px solid rgba(186,144,68,0.35);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ir-option::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(186,144,68,0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.ir-option:hover {
    background: #2e1c08;
    border-left-color: #ba9044;
    transform: translateX(3px);
}

.ir-option:hover::after {
    opacity: 1;
}

.ir-option-icon {
    flex-shrink: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ir-option-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.ir-option-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e8d9be;
    line-height: 1.3;
    display: block;
}

.ir-option-hint {
    font-size: 0.72rem;
    color: #9b8a6e;
    display: block;
    margin-top: 0.15rem;
    font-weight: 300;
}

.ir-option-arrow {
    margin-left: auto;
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.18s, transform 0.18s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ir-option:hover .ir-option-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ── Response Panel ── */
.ir-response {
    text-align: center;
    padding: 0.5rem 0;
}

.ir-response-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.ir-response-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.25rem;
    color: #ba9044;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.ir-response-body {
    font-size: 0.845rem;
    color: #9b8a6e;
    line-height: 1.65;
    margin-bottom: 1.4rem;
    font-weight: 300;
}

.ir-response-body strong {
    color: #e8d9be;
    font-weight: 500;
}

/* ── CTA Buttons ── */
.ir-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.ir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.855rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
    letter-spacing: 0.02em;
}

.ir-btn-primary {
    background: #ba9044;
    color: #1a0e02;
}

.ir-btn-primary:hover {
    background: #d4a85a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(186,144,68,0.3);
    color: #1a0e02;
    text-decoration: none;
}

.ir-btn-outline {
    background: transparent;
    color: #ba9044;
    border: 1px solid rgba(186,144,68,0.35);
}

.ir-btn-outline:hover {
    background: rgba(186,144,68,0.15);
    border-color: #ba9044;
    color: #ba9044;
    text-decoration: none;
}

/* ── Back Button ── */
.ir-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: #9b8a6e;
    font-size: 0.775rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
}

.ir-back:hover {
    color: #ba9044;
}

/* ── Divider ── */
.ir-divider {
    border: none;
    border-top: 1px solid rgba(186,144,68,0.35);
    margin: 1.5rem 0 1rem;
    opacity: 0.4;
}

/* ── Footer WhatsApp nudge ── */
.ir-footer-nudge {
    text-align: center;
    font-size: 0.75rem;
    color: #9b8a6e;
    font-weight: 300;
}

.ir-footer-nudge a {
    color: #ba9044;
    text-decoration: none;
    font-weight: 500;
}

.ir-footer-nudge a:hover {
    text-decoration: underline;
}

/* ── Contact Chips (Talk to Lawyer panel) ── */
.ir-contact-chips {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

.ir-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #1a0e02;
    border: 1px solid rgba(186,144,68,0.35);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.ir-chip:hover {
    background: #2e1c08;
    border-color: #ba9044;
    text-decoration: none;
}

.ir-chip-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ir-chip-label {
    font-size: 0.72rem;
    color: #9b8a6e;
    display: block;
    font-weight: 300;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ir-chip-value {
    font-size: 0.875rem;
    color: #e8d9be;
    font-weight: 500;
}

/* ── Availability Badge ── */
.ir-avail {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #9b8a6e;
    margin-top: 0.75rem;
    font-weight: 300;
}

.ir-avail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5cb85c;
    animation: irPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes irPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
