/* Reserved Citizen Bank - Main CSS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--leading-body, 1.55);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h4, h5, h6 {
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}



/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid transparent;
    margin: 0.5rem 0rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background-color: var(--button-bg, var(--rcb-ink));
    color: var(--button-text, var(--rcb-paper)) !important;
    border: 1px solid var(--button-bg, var(--rcb-ink));
}

.btn-primary:hover {
    background-color: var(--rcb-ink-soft, #213a60);
    border-color: var(--rcb-ink-soft, #213a60);
    color: var(--button-text, var(--rcb-paper)) !important;
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

:root[data-theme="dark"] .btn-primary:hover {
    background-color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: #162b4b !important;
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--button-bg, var(--rcb-ink)) !important;
    border-color: var(--button-bg, var(--rcb-ink)) !important;
    color: var(--button-text, var(--rcb-paper)) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-error {
    background-color: var(--error);
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.125rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:hover {
    border-color: var(--text-tertiary);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(217, 95, 14, 0.12);
}

.form-input.error {
    border-color: var(--error);
}

.form-input.success {
    border-color: var(--success);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

.form-hint {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.card-hoverable:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    margin-bottom: 0;
}

.card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -12px;
}

.col {
    flex: 1;
    padding: 12px;
}

.col-1 { flex: 0 0 8.333%; }
.col-2 { flex: 0 0 16.667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333%; }
.col-5 { flex: 0 0 41.667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333%; }
.col-8 { flex: 0 0 66.667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333%; }
.col-11 { flex: 0 0 91.667%; }
.col-12 { flex: 0 0 100%; }

/* Dividers */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.divider-vertical {
    width: 1px;
    height: auto;
    background-color: var(--border);
    margin: 0 20px;
}

/* Lists */
.list {
    list-style: none;
    padding: 0;
}

.list-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child {
    border-bottom: none;
}

.list-inline {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
}

/* Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-rounded {
    border-radius: 8px;
}

.img-circle {
    border-radius: 50%;
}

/* Icons */
.icon-small {
    font-size: 1rem;
}

.icon-medium {
    font-size: 1.5rem;
}

.icon-large {
    font-size: 2rem;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 16px 0;
}

.breadcrumb-item {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-tertiary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--accent-primary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 20px 0;
}

.page-item {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.page-item:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--text-tertiary);
}

.page-item.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 100;
    display: none;
}

.dropdown-menu.right {
    left: auto;
    right: 0;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border);
    margin: 4px 0;
}

/* Accordion & Details FAQ Styling */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    background: var(--card-bg, #ffffff);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.accordion-item:hover {
    border-color: var(--hb-amber, #B08D57);
}

.accordion-item[open] {
    border-color: var(--hb-amber, #B08D57);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.accordion-header {
    padding: 20px 24px;
    background: var(--bg-secondary, #f8fafc);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--text-primary);
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header:hover {
    background: var(--card-bg, #ffffff);
}

.accordion-header i {
    transition: transform 0.25s ease;
    color: var(--hb-amber, #B08D57);
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-left: 16px;
}

.accordion-item[open] .accordion-header i,
.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 20px 24px 24px;
    display: block;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
    background: var(--card-bg, #ffffff);
    border-top: 1px solid var(--border);
}

.accordion-item:not([open]) .accordion-body {
    display: none;
}

.accordion-item.active .accordion-body {
    display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    
    .btn-large {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Utility Animation Classes */
.animate-fadeIn { animation: fadeIn 0.3s ease; }
.animate-slideInUp { animation: slideInUp 0.3s ease; }
.animate-slideInDown { animation: slideInDown 0.3s ease; }
.animate-slideInLeft { animation: slideInLeft 0.3s ease; }
.animate-slideInRight { animation: slideInRight 0.3s ease; }

/* ==========================================================================
   RESERVED CITIZEN BANK — Global Institutional Footer
   ========================================================================== */
.footer {
    background-color: var(--surface);
    color: var(--text);
    padding: 88px 0 36px;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(176, 141, 87, 0.08) 0%, rgba(22, 43, 75, 0.04) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
    gap: 48px;
    margin-bottom: 56px;
    position: relative;
    z-index: 2;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand-col {
    padding-right: 20px;
}

.footer-brand-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 16px 0 24px;
    max-width: 340px;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    width: fit-content;
}

.footer-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--rcb-positive, #274775);
    box-shadow: 0 0 8px var(--rcb-positive, #274775);
}

.footer-meta-specs {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 22px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a,
.footer-col > a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-links-list a:hover,
.footer-col > a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item:hover {
    color: var(--accent);
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-links a:hover {
    background: var(--button-bg);
    border-color: var(--button-bg);
    color: var(--button-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.footer-disclosure {
    position: relative;
    z-index: 2;
    padding: 22px 26px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 64px 0 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-brand-col {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
