/* ================================================================
   Rawdah Booking — Landing Page Styles
   ================================================================ */

/* --- CSS Variables (theme-aware) --- */
:root {
    --landing-hero-bg: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
    --landing-hero-color: #fff;
    --landing-section-bg: #fff;
    --landing-card-bg: #fff;
    --landing-card-border: rgba(0,0,0,0.08);
    --landing-card-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --landing-highlight-bg: rgba(5,150,105,0.08);
    --landing-highlight-border: rgba(5,150,105,0.3);
    --landing-accent: #059669;
    --landing-accent-light: #10b981;
    --landing-muted: #6b7280;
    --landing-divider: #e5e7eb;
    --landing-badge-bg: rgba(5,150,105,0.12);
    --landing-badge-color: #065f46;
    --landing-timeline-line: #d1d5db;
    --landing-timeline-dot-bg: #059669;
    --landing-cta-bg: #059669;
    --landing-cta-hover: #047857;
    --landing-stat-number-color: #059669;
}

[data-theme="dark"] {
    --landing-section-bg: #1a1d21;
    --landing-card-bg: #242628;
    --landing-card-border: rgba(255,255,255,0.08);
    --landing-card-shadow: 0 2px 12px rgba(0,0,0,0.3);
    --landing-highlight-bg: rgba(16,185,129,0.1);
    --landing-highlight-border: rgba(16,185,129,0.25);
    --landing-muted: #9ca3af;
    --landing-divider: #3e4349;
    --landing-badge-bg: rgba(16,185,129,0.15);
    --landing-badge-color: #6ee7b7;
    --landing-timeline-line: #3e4349;
    --landing-timeline-dot-bg: #10b981;
    --landing-stat-number-color: #10b981;
}

/* --- Header --- */
.landing-header {
    background: rgba(6,95,70,0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 0.3s;
}
.landing-header.scrolled {
    background: rgba(6,95,70,0.98);
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.landing-header .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.landing-header .navbar-brand {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}
.landing-header .navbar-brand:hover { color: rgba(255,255,255,0.85); }

/* Anchor nav links */
.landing-nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem !important;
    border-radius: 0.4rem;
    transition: background 0.15s, color 0.15s;
}
.landing-nav-link:hover,
.landing-nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

/* Buttons in header */
.landing-header .btn-outline-light {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
}
.landing-header .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.landing-header .btn-light {
    color: #065f46;
    font-weight: 600;
    font-size: 0.85rem;
}
.landing-header .btn-primary {
    background: #fff;
    color: #065f46;
    border-color: #fff;
}

/* --- Footer --- */
.landing-footer {
    background: var(--landing-section-bg);
    font-size: 0.875rem;
    color: var(--landing-muted);
    border-top: 1px solid var(--landing-divider);
}
.landing-footer h6 {
    color: var(--bs-body-color);
}
.landing-footer-link {
    color: var(--landing-muted) !important;
    text-decoration: none;
    transition: color 0.15s;
}
.landing-footer-link:hover {
    color: var(--landing-accent) !important;
}
.landing-footer hr {
    border-color: var(--landing-divider);
    opacity: 0.5;
}

/* --- Section Spacing --- */
.landing-section {
    padding: 5rem 0;
}
.landing-section-alt {
    background: var(--landing-section-bg);
}
.landing-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}
.landing-section .section-subtitle {
    color: var(--landing-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 3rem;
}

/* --- Hero --- */
.landing-hero {
    background: var(--landing-hero-bg);
    color: var(--landing-hero-color);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.landing-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: pre-line;
}
.landing-hero .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 560px;
}
.landing-hero .btn-primary {
    background: #fff;
    color: #065f46;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.landing-hero .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.landing-hero .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
}
.landing-hero .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Social Proof Stats --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-card-border);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--landing-card-shadow);
}
.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--landing-stat-number-color);
    line-height: 1.1;
}
.stat-card .stat-label {
    color: var(--landing-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 991px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
    background: var(--landing-card-bg);
    border: 2px solid var(--landing-card-border);
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    border-color: var(--landing-accent-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.feature-card.highlight {
    border-color: var(--landing-highlight-border);
    background: var(--landing-highlight-bg);
}
.feature-card .feature-icon {
    font-size: 2rem;
    color: var(--landing-accent);
    margin-bottom: 0.75rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--landing-muted);
    font-size: 0.9rem;
    margin: 0;
}
.feature-card .highlight-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--landing-badge-bg);
    color: var(--landing-badge-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    text-transform: uppercase;
}

/* --- Timeline --- */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 1rem;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 56px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--landing-timeline-line);
    z-index: 0;
}
.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}
.timeline-step .step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--landing-timeline-dot-bg);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}
.timeline-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.timeline-step p {
    color: var(--landing-muted);
    font-size: 0.875rem;
    max-width: 200px;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .timeline::before {
        top: 0; bottom: 0;
        left: 27px; right: auto;
        width: 3px;
        height: auto;
    }
    .timeline-step {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }
    .timeline-step .step-circle {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .timeline-step p { max-width: none; }
}

/* --- Persona Cards --- */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 991px) {
    .persona-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}
.persona-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-card-border);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--landing-card-shadow);
}
.persona-card .persona-icon {
    font-size: 2.5rem;
    color: var(--landing-accent);
    margin-bottom: 1rem;
}
.persona-card .target-label {
    display: inline-block;
    background: var(--landing-badge-bg);
    color: var(--landing-badge-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.persona-card h3 { font-size: 1.25rem; font-weight: 700; }
.persona-card .persona-subtitle { color: var(--landing-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.persona-card .persona-feature {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--landing-divider);
}
.persona-card .persona-feature:last-child { border-bottom: none; }
.persona-card .persona-feature i { color: var(--landing-accent); font-size: 1.15rem; margin-top: 2px; }
.persona-card .persona-feature strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.persona-card .persona-feature span { font-size: 0.8rem; color: var(--landing-muted); }

/* --- Required Data --- */
.required-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}
.data-item {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-card-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}
.data-item i { font-size: 1.75rem; color: var(--landing-accent); margin-bottom: 0.5rem; }
.data-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.data-item p { font-size: 0.8rem; color: var(--landing-muted); margin: 0; }
.data-item .required-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
}
.data-item .required-badge.required { background: rgba(5,150,105,0.12); color: #065f46; }
.data-item .required-badge.optional { background: rgba(107,114,128,0.12); color: #6b7280; }

.visa-note {
    background: var(--landing-highlight-bg);
    border: 2px solid var(--landing-highlight-border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.visa-note i { font-size: 1.5rem; color: var(--landing-accent); flex-shrink: 0; margin-top: 2px; }
.visa-note p { margin: 0; font-size: 0.95rem; }

/* --- FAQ Accordion --- */
.accordion-button:not(.collapsed) {
    background: var(--landing-highlight-bg);
    color: var(--landing-accent);
    font-weight: 600;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(5,150,105,0.2);
    border-color: var(--landing-accent-light);
}
.accordion-item {
    background: var(--landing-card-bg);
    border-color: var(--landing-card-border);
}
.accordion-button {
    background: var(--landing-card-bg);
    color: var(--bs-body-color);
}
.accordion-button::after {
    filter: none;
}
[data-theme="dark"] .accordion-button::after {
    filter: invert(1) brightness(1.5);
}
.accordion-body {
    background: var(--landing-card-bg);
    color: var(--bs-body-color);
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (max-width: 767px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-card-border);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--landing-card-shadow);
}
.testimonial-card .quote-icon { font-size: 2rem; color: var(--landing-accent); opacity: 0.3; }
.testimonial-card .quote-text {
    font-size: 1rem;
    font-style: italic;
    margin: 0.75rem 0 1rem;
    color: var(--landing-muted);
}
.testimonial-card .author { font-weight: 700; font-size: 0.95rem; }
.testimonial-card .author-country { font-size: 0.8rem; color: var(--landing-muted); }
.testimonial-card .stat-highlight {
    display: inline-block;
    background: var(--landing-highlight-bg);
    color: var(--landing-accent);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    margin-top: 0.75rem;
}

/* --- Comparison Table --- */
.comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--landing-card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--landing-card-shadow);
}
.comparison-table thead th {
    background: var(--landing-accent);
    color: #fff;
    font-weight: 700;
    padding: 1rem 1.5rem;
    text-align: center;
}
.comparison-table thead th:first-child {
    text-align: left;
    background: #065f46;
}
.comparison-table td {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--landing-divider);
    text-align: center;
    font-size: 0.95rem;
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* --- Contact Section --- */
.contact-form-wrap {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-card-border);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: var(--landing-card-shadow);
}
.contact-info-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-card-border);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--landing-card-shadow);
    height: 100%;
}
.contact-method-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--landing-divider);
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
}
.contact-method-item:last-child { border-bottom: none; }
.contact-method-item:hover { color: var(--landing-accent); }
.contact-method-item i { font-size: 1.5rem; color: var(--landing-accent); }

/* --- Animations --- */
@@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.stat-card { animation: countUp 0.6s ease-out both; }
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* --- Utility --- */
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--landing-accent);
    border-radius: 2px;
    margin: 0 auto 2rem;
}
.text-accent { color: var(--landing-accent); }

/* --- Live Feed Card (Hero right side) --- */
.live-feed-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    height: 250px;
    display: flex;
    flex-direction: column;
}
.live-feed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    flex-shrink: 0;
}
.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}
.live-radar {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #22c55e;
    position: relative;
    flex-shrink: 0;
    animation: radarPulse 1.5s infinite;
}
.live-radar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    opacity: 0;
    animation: radarRing 1.5s infinite;
}
@keyframes radarPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
@keyframes radarRing {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(2); }
}
.live-label {
    font-weight: 700;
    letter-spacing: 1px;
    color: #22c55e;
}
.live-sub {
    margin-left: auto;
    opacity: 0.6;
    font-size: 0.7rem;
}
.live-feed-list {
    overflow-y: hidden;
    flex: 1;
    padding: 0.5rem;
}
.live-feed-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.95);
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease-out, transform 0.35s ease-out;
}
.live-feed-item.live-feed-enter-left {
    opacity: 0;
    transform: translateX(-30px);
}
.live-feed-item.live-feed-enter-right {
    opacity: 0;
    transform: translateX(30px);
}
.live-feed-item.live-feed-show {
    opacity: 1;
    transform: translateX(0);
}
.live-feed-item.live-feed-exit-left {
    opacity: 0;
    transform: translateX(-30px);
}
.live-feed-item.live-feed-exit-right {
    opacity: 0;
    transform: translateX(30px);
}
.live-feed-item:hover {
    background: rgba(255,255,255,0.1);
}
.live-feed-flag-img {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
    object-fit: cover;
}
.live-feed-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-feed-count {
    color: #4ade80;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.live-feed-list::-webkit-scrollbar { width: 3px; }
.live-feed-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* Hero stat cards — white on green */
.landing-hero .stat-card {
    background: #fff !important;
    color: #212529 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.landing-hero .stat-card .stat-number { color: #059669 !important; }
.landing-hero .stat-card .stat-label { color: #6b7280 !important; }

[data-theme="dark"] .landing-hero .stat-card {
    background: #fff !important;
    color: #212529 !important;
}
[data-theme="dark"] .landing-hero .stat-card .stat-number { color: #059669 !important; }
[data-theme="dark"] .landing-hero .stat-card .stat-label { color: #6b7280 !important; }
