/* ============================================================
   mynexus.css — Nexus Rewards Page Styles
   Covers: nav, hero, benefits section, modals, responsive
   ============================================================ */

/* ── Root Variables ─────────────────────────────────────────── */
:root {
    --tropical-turquoise: #38B8BF;
    --tropical-teal: #1D7886;
    --tropical-light-teal: #81D4D7;
    --tropical-sky-blue: #2C7FB8;
    --tropical-palm-green: #82A73F;
    --gradient-tropical: linear-gradient(135deg, #38B8BF 0%, #2C7FB8 50%, #81D4D7 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ── Navigation ─────────────────────────────────────────────── */
#navigation {
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

#navigation.scrolled {
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.nav-link {
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

#navigation.scrolled .nav-link       { color: #374151; }
.nav-link:hover                       { color: #fbbf24; }
#navigation.scrolled .nav-link:hover  { color: #2563eb; }

.mobile-menu-btn {
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

#navigation.scrolled .mobile-menu-btn        { color: #374151; }
.mobile-menu-btn:hover                        { color: #fbbf24; }
#navigation.scrolled .mobile-menu-btn:hover   { color: #2563eb; }

.mobile-menu {
    max-height: 0;
    transition: max-height 0.3s ease;
}

.mobile-menu.open { max-height: 300px; }

.logo-container { transition: transform 0.3s ease; }
.logo-container:hover { transform: scale(1.05); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero-content { animation: fadeInUp 1s ease; }

.hero-stats   { animation: fadeInUp 1s ease 0.3s both; }
.hero-cta     { animation: fadeInUp 1s ease 0.6s both; }

.scroll-indicator { animation: bounce 2s infinite; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* ── Utility ────────────────────────────────────────────────── */
.mt-4  { margin-top:    1rem    !important; }
.mt-6  { margin-top:    1.5rem  !important; }
.mb-0  { margin-bottom: 0       !important; }
.mb-3  { margin-bottom: 0.75rem !important; }
.mb-4  { margin-bottom: 1rem    !important; }
.text-center { text-align: center; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}
.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 1.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #60a5fa);
    color: white;
    box-shadow: 0 4px 15px rgba(56,184,191,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(56,184,191,0.4); }

.btn-vip-travel {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.btn-vip-travel:hover { background: linear-gradient(135deg,#2563eb,#1e40af); transform: translateY(-2px); }

.btn-bill-reduction {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    box-shadow: 0 4px 15px rgba(168,85,247,0.3);
}
.btn-bill-reduction:hover { background: linear-gradient(135deg,#9333ea,#db2777); transform: translateY(-2px); }

.btn-prescription {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
    color: white;
    box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}
.btn-prescription:hover { background: linear-gradient(135deg,#16a34a,#0d9488); transform: translateY(-2px); }

.btn-benefits-hub {
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}
.btn-benefits-hub:hover { background: linear-gradient(135deg,#ea580c,#b91c1c); transform: translateY(-2px); }

/* ── Benefits Section ───────────────────────────────────────── */
.benefits-section {
    padding: 2rem 0;
    background: linear-gradient(to bottom, #e8f4fd, #d6eaf8, #e8f4fd);
    position: relative;
    overflow: hidden;
}
.benefits-background-decoration {
    position: absolute; inset: 0; opacity: 0.3; pointer-events: none;
}
.benefits-background-decoration::before {
    content: ''; position: absolute; top: 2rem; left: 2rem;
    width: 10rem; height: 10rem;
    background: var(--tropical-turquoise); border-radius: 50%; filter: blur(40px);
}
.benefits-background-decoration::after {
    content: ''; position: absolute; bottom: 3rem; right: 3rem;
    width: 14rem; height: 14rem;
    background: var(--tropical-palm-green); border-radius: 50%; filter: blur(50px);
}

/* ── Container ──────────────────────────────────────────────── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* ── Section Header ─────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-badge {
    display: inline-flex; align-items: center;
    background: var(--gradient-tropical); color: white;
    padding: 0.75rem 1.5rem; border-radius: 2rem;
    font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; gap: 0.5rem;
}
.section-title {
    font-size: 3rem; font-weight: 700; color: #1f2937;
    margin-bottom: 1.5rem; line-height: 1.2;
    background: linear-gradient(90deg,#1e3a8a,#3b82f6,#1e3a8a,#ffe680,#1e3a8a,#3b82f6,#1e3a8a);
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: shimmer-blue 20s linear infinite;
}
@keyframes shimmer-blue {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.section-subtitle { font-size: 1.25rem; color: #6b7280; max-width: 800px; margin: 0 auto; }

/* ── Benefits Grid & Cards ──────────────────────────────────── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.benefit-card {
    background: white; border-radius: 1.5rem; padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(230,230,230,0.5);
    transition: all 0.5s ease; cursor: default;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(56,184,191,0.15);
    border-color: rgba(56,184,191,0.3);
}
.benefit-image       { width: 100%; height: 200px; object-fit: cover; border-radius: 1rem; margin-bottom: 1.5rem; }
.benefit-title       { font-size: 1.5rem; font-weight: 600; color: #1f2937; margin-bottom: 1rem; }
.benefit-description { color: #6b7280; margin-bottom: 1.5rem; line-height: 1.6; }
.benefit-savings {
    background: linear-gradient(135deg, #1e3a8a, #60a5fa); color: white;
    padding: 0.5rem 1rem; border-radius: 1rem; font-weight: 600; font-size: 0.875rem;
    display: block; width: fit-content; margin: 0 auto 1rem auto;
    cursor: default; pointer-events: none;
    box-shadow: 0 2px 8px rgba(56,184,191,0.2);
    border: 2px solid rgba(255,255,255,0.2);
    letter-spacing: 0.025em; text-transform: uppercase;
}
.benefit-features { list-style: none; padding: 0; width: 100%; text-align: left; margin-bottom: 1.5rem; }
.benefit-features li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: #4b5563; }
.benefit-features li::before { content: "\2713"; color: #D4AF37; font-weight: bold; flex-shrink: 0; }

/* ── Modal Frame ────────────────────────────────────────────── */
.modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-content {
    background: white; border-radius: 1.5rem; padding: 2rem;
    max-width: 800px; width: 90vw; max-height: 80vh; overflow-y: auto;
    position: relative; transform: scale(0.9);
    transition: transform 0.3s ease; margin: 1rem; text-align: center;
}
.modal.active .modal-content { transform: scale(1); }
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
    width: 2rem; height: 2rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #666;
}
.modal-close:hover { background: #f3f4f6; }

/* ── Video ──────────────────────────────────────────────────── */
.video-container {
    position: relative; width: 100%; max-width: 500px;
    aspect-ratio: 16/9; margin: 0 auto;
}
.video-container video { width: 100%; height: 100%; border-radius: 0.5rem; }

/* ── VIP Travel Cards ───────────────────────────────────────── */
.vip-savings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.5rem; margin-top: 2rem; }
.vip-savings-card  { background: #f8fafc; border-radius: 1rem; padding: 1.5rem; text-align: center; }
.vip-hotel-image   { width: 100%; height: 150px; object-fit: cover; border-radius: 0.5rem; margin-bottom: 1rem; }
.vip-hotel-name    { font-weight: 600; margin-bottom: 0.5rem; }
.vip-location      { color: #6b7280; font-size: 0.875rem; margin-bottom: 1rem; }
.vip-pricing       { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.vip-regular-price { text-decoration: line-through; color: #ef4444; }
.vip-savings-amount { background: var(--gradient-tropical); color: white; padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.875rem; font-weight: 600; }

/* ── Bill Reduction Steps ───────────────────────────────────── */
.step-icon-container { position: relative; display: inline-block; margin-bottom: 1rem; }
.step-icon           { color: var(--tropical-turquoise); margin-bottom: 0.5rem; }
.step-number {
    position: absolute; top: -10px; right: -10px;
    background: var(--gradient-tropical); color: white;
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 600; box-shadow: 0 2px 8px rgba(56,184,191,0.3);
}
.savings-item {
    display: flex; align-items: center; padding: 1rem;
    background: rgba(56,184,191,0.05); border-radius: 0.5rem;
    margin-bottom: 0.75rem; border: 1px solid rgba(56,184,191,0.1); transition: all 0.3s ease;
}
.savings-item:hover { background: rgba(56,184,191,0.1); transform: translateY(-2px); }
.savings-icon       { margin-right: 1rem; color: var(--tropical-turquoise); flex-shrink: 0; }
.savings-type       { flex: 1; font-weight: 500; color: #333; }
.savings-percentage { font-weight: 600; color: var(--tropical-teal); background: rgba(56,184,191,0.1); padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.875rem; }

/* ── Prescription Steps ─────────────────────────────────────── */
.prescription-process { margin: 2rem 0; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.5rem; margin-top: 1rem; }
.process-step { text-align: center; padding: 1.5rem; background: #f8fafc; border-radius: 1rem; border: 1px solid rgba(56,184,191,0.1); position: relative; }
.process-step h5 { color: var(--tropical-teal); font-size: 1rem; font-weight: 600; margin: 0.5rem 0; }
.process-step p  { color: #6b7280; font-size: 0.875rem; margin: 0; line-height: 1.4; }

/* ── Prescription Medication Cards ─────────────────────────── */
.savings-examples  { margin: 2rem 0; }
.medication-savings { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; max-width: 400px; margin-left: auto; margin-right: auto; }
.medication-card   { background: white; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; position: relative; }
.medication-card h6 { color: #1e3a8a; font-weight: 600; margin: 0 0 1rem 0; font-size: 1.125rem; }
.price-comparison  { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.retail-price      { color: #dc2626; font-size: 1rem; text-decoration: line-through; font-weight: 500; }
.nexus-price       { color: #059669; font-weight: 600; font-size: 1.125rem; }
.savings-percent   { position: absolute; top: 1rem; right: 1rem; background: #10b981; color: white; border-radius: 1.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; }

/* ── Key Benefits Checklist ─────────────────────────────────── */
.key-benefits  { margin: 2rem 0; }
.benefits-list { background: #1e3a8a; border-radius: 1rem; padding: 2rem; margin-top: 1rem; display: flex; flex-direction: column; gap: 1.25rem; }
.benefit-item  { display: flex; align-items: center; gap: 1rem; padding: 0; }
.checkmark     { color: #fbbf24; font-weight: bold; font-size: 1.25rem; flex-shrink: 0; }
.benefit-item span:last-child { color: white; font-size: 1rem; line-height: 1.4; font-weight: 400; }

/* ── Grocery Pro Section ────────────────────────────────────── */
@media (max-width: 768px) {
    #grocery-pro [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    #grocery-pro [style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
}
@media (min-width: 992px) {
    .modal-content   { max-width: 800px; width: 800px; }
    .video-container { max-width: 700px; }
}
@media (max-width: 768px) {
    .benefits-section   { padding: 2rem 0; }
    .section-title      { font-size: 2rem; }
    .benefits-grid      { grid-template-columns: 1fr; }
    .benefit-card       { padding: 1.5rem; }
    .modal-content      { max-width: 90vw; max-height: 85vh; padding: 1.5rem; }
    .process-steps      { grid-template-columns: 1fr; gap: 1rem; }
    .medication-savings { max-width: 100%; }
    .benefits-list      { padding: 1.5rem; gap: 1rem; }
}

/* Section padding overrides */
.nexus-section-pad {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
@media (max-width: 480px) {
    .section-title    { font-size: 1.75rem; }
    .modal-content    { max-width: 95vw; padding: 1rem; }
    .medication-card  { padding: 1rem; }
    .savings-percent  { top: 0.75rem; right: 0.75rem; padding: 0.25rem 0.625rem; font-size: 0.75rem; }
}
