/* ============================================
   AbuRayyan Car Inspection — Landing Page CSS
   Dark premium theme with gold accents
   ============================================ */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a24;
    --bg-surface: #1c1c28;
    --gold: #c8a456;
    --gold-light: #e0c478;
    --gold-dark: #a8873a;
    --green: #22c55e;
    --green-bg: rgba(34,197,94,0.08);
    --green-border: rgba(34,197,94,0.15);
    --text-primary: #f0ece4;
    --text-secondary: #9a948a;
    --text-muted: #5c584f;
    --border: rgba(200,164,86,0.1);
    --border-hover: rgba(200,164,86,0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 32px rgba(0,0,0,0.4);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 500;
    border-right: 2px solid var(--gold);
    padding-right: 10px;
    letter-spacing: 0.02em;
}

.header-cta {
    font-size: 0.85rem;
    padding: 8px 20px;
    color: #fff;
}

/* ==================== BUTTONS ==================== */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    box-shadow: 0 4px 20px rgba(200,164,86,0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200,164,86,0.4);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.cta-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.2);
}

.cta-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.35);
    background: #20bd5a;
}

.cta-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: url('Dealership.webp') center/cover no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(200,164,86,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(200,164,86,0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10,10,15,0.85) 0%, rgba(14,14,22,0.98) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,164,86,0.06) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(-50px, 30px) scale(1.1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-main-logo {
    height: 90px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
    animation: fadeInUp 0.6s ease both;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s 0.2s ease both;
}

/* ==================== STATS ==================== */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.3s ease both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.stars-display {
    font-size: 1.5rem;
    color: #ffc107;
    letter-spacing: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.4s ease both;
}

/* ==================== REVIEWS SECTION ==================== */
.reviews-section {
    padding: 100px 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(200,164,86,0.03) 0%, transparent 50%),
        var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-block;
    background: rgba(200,164,86,0.08);
    border: 1px solid rgba(200,164,86,0.15);
    color: var(--gold);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto 20px;
}

.haraj-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(200,164,86,0.2);
    transition: var(--transition);
}

.haraj-link:hover {
    background: rgba(200,164,86,0.08);
    border-color: rgba(200,164,86,0.35);
}

/* ==================== REVIEW CARDS ==================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease both;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: rgba(200,164,86,0.04);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.review-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.reviewer-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.review-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    direction: ltr;
    text-align: right;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.review-stars {
    color: #ffc107;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.review-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ==================== LOAD MORE ==================== */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 48px auto 0;
    padding: 14px 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--gold);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: rgba(200,164,86,0.06);
    border-color: rgba(200,164,86,0.3);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 80px 0 100px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(200,164,86,0.06) 0%, rgba(200,164,86,0.02) 100%);
    border: 1px solid rgba(200,164,86,0.12);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,164,86,0.06) 0%, transparent 70%);
}

.cta-card h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
    border-top: 1px solid var(--border);
    padding-top: 48px;
    background: var(--bg-dark);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 32px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 36px;
    filter: brightness(0) invert(1);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-haraj {
    text-align: left;
}

.footer-haraj p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .stats-row {
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-haraj {
        text-align: center;
    }

    .logo-subtitle {
        display: none;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .reviews-section {
        padding: 60px 0;
    }

    .reviewer-name {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .cta-btn {
        width: 100%;
        justify-content: center;
    }
}
