/* Atmos Credit — site-wide shared styles */

/* === Navigation — two-tone split === */
.glass-nav {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.dark .glass-nav {
    background: rgba(15, 23, 42, 0.92);
}
/* diagonal clip leaves a gap pixel on some renderers — fill it */
.nav-logo-zone {
    position: relative;
    z-index: 1;
}

/* === Typography === */
.text-gradient {
    background: linear-gradient(135deg, #0F172A 0%, #d3bc5f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Backgrounds === */
.card-gradient {
    background: linear-gradient(135deg, #0F172A 0%, #080D14 100%);
}
.gold-gradient {
    background: linear-gradient(135deg, #9b8838 0%, #d3bc5f 50%, #ebcb70 100%);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }

/* === Details/Summary === */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* === Dark mode toggle icons === */
.toggle-icon-moon { display: block; }
.toggle-icon-sun  { display: none; }
.dark .toggle-icon-moon { display: none; }
.dark .toggle-icon-sun  { display: block; }

/* === Dropdown hover bridge === */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

/* === Credit card visuals === */
.cc-card {
    width: 100%;
    aspect-ratio: 1.586 / 1;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 52px -10px rgba(0,0,0,0.45);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease;
}
.cc-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}
.cc-card:hover {
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: 0 36px 64px -12px rgba(0,0,0,0.55);
}
.cc-chip {
    width: 40px;
    height: 29px;
    border-radius: 5px;
    background: linear-gradient(135deg, #c8a84b 0%, #f5d87e 35%, #daa84a 55%, #f5d87e 80%, #c8a84b 100%);
    position: relative;
    overflow: hidden;
}
.cc-chip::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(100,75,0,0.2);
    transform: translateY(-50%);
}
.cc-chip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%; width: 1px;
    background: rgba(100,75,0,0.18);
    transform: translateX(-50%);
}
.cc-chip-silver {
    background: linear-gradient(135deg, #94a3b8 0%, #e2e8f0 35%, #b0bbc8 55%, #e2e8f0 80%, #94a3b8 100%);
}
.cc-chip-silver::before { background: rgba(0,0,0,0.1); }
.cc-chip-silver::after  { background: rgba(0,0,0,0.08); }

/* === Home page === */
.loan-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.loan-card:hover { transform: translateY(-6px); }
.testimonial-card { transition: all 0.3s ease; }
.testimonial-card:hover { transform: translateY(-4px); }

/* === About page === */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0F172A, #d3bc5f);
}

/* === Contact page === */
.input-field {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 0.875rem;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #0f172a;
}
.dark .input-field { border-color: #334155; background: #1e293b; color: #f1f5f9; }
.input-field:focus { outline: none; border-color: #0F172A; background: #fff; box-shadow: 0 0 0 4px rgba(10,37,64,0.1); }
.dark .input-field:focus { background: #1e293b; box-shadow: 0 0 0 4px rgba(10,37,64,0.2); }
.input-field::placeholder { color: #94a3b8; }

/* === Services page === */
.service-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.service-card:hover { transform: translateY(-4px); }
.feature-check { color: #d3bc5f; }

/* === Legal pages (Privacy, Terms, Loan Agreement) === */
.legal-h2 { font-size: 1.25rem; font-weight: 800; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-p { font-size: 0.95rem; color: #475569; line-height: 1.8; margin-bottom: 1rem; }
.dark .legal-p { color: #94a3b8; }
.legal-ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-ul li { font-size: 0.95rem; color: #475569; line-height: 1.8; margin-bottom: 0.25rem; }
.dark .legal-ul li { color: #94a3b8; }

/* === Cookies page === */
.cookie-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9rem; }
.cookie-table th { background: #f1f5f9; font-weight: 700; padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid #e2e8f0; }
.dark .cookie-table th { background: #1e293b; border-color: #334155; color: #f1f5f9; }
.cookie-table td { padding: 0.65rem 1rem; border-bottom: 1px solid #e2e8f0; color: #475569; vertical-align: top; }
.dark .cookie-table td { border-color: #334155; color: #94a3b8; }

/* === Remora Bank inner pages === */
.rich-text h2 { font-size: 1.875rem; font-weight: 900; margin-top: 2.5rem; margin-bottom: 1rem; color: #0f172a; }
.dark .rich-text h2 { color: #f8fafc; }
.rich-text h3 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: #1e293b; }
.dark .rich-text h3 { color: #e2e8f0; }
.rich-text p { margin-bottom: 1.5rem; line-height: 1.75; color: #475569; font-weight: 500; }
.dark .rich-text p { color: #94a3b8; }
.rich-text ul { margin-bottom: 1.5rem; padding-left: 1.5rem; list-style-type: disc; color: #475569; font-weight: 500; }
.dark .rich-text ul { color: #94a3b8; }
.rich-text li { margin-bottom: 0.5rem; }
