/* 
   MASTER DESIGN SYSTEM: HAMLAT AHALI AL-QASSIM
   Methodology: 60-30-10 Rule (Base/Support/Accent)
   Style: Elite Minimalism / Nusuk-Inspired
*/

:root {
    /* Primary (60%) - Clean Base */
    --base-white: #FFFFFF;
    --base-light: #F9FAF8;

    /* Secondary (30%) - Corporate Support */
    --brand-dark: #0D2E24;
    /* Deep Islamic Green */
    --text-primary: #1A1C19;
    --text-secondary: #4A4D48;

    /* Accent (10%) - Brand Vibrancy (From Logo) */
    --brand-accent: #79B41D;
    /* Vibrant Logo Green */
    --brand-gold: #B88B4A;
    /* Refined Metallic Gold */

    /* Functional */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-elite: 0 20px 50px rgba(13, 46, 36, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: 'Almarai', sans-serif;
    color: var(--text-primary);
    background-color: var(--base-white);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Navigation: Clean & Intentional --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 700;
    margin-right: 40px;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-accent);
}

/* --- Elite Buttons --- */
.btn-primary {
    background: var(--brand-accent);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 8px 15px rgba(121, 180, 29, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #699e19;
    box-shadow: 0 12px 25px rgba(121, 180, 29, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: white;
    color: var(--brand-dark);
}

/* --- Hero: Spacious & Royal --- */
.hero {
    height: 90vh;
    background: url('premium_hajj_background.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(13, 46, 36, 0.1), rgba(13, 46, 36, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 60%;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: white;
}

.hero h1 span {
    color: var(--brand-accent);
}

.hero p {
    font-size: 1.35rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
    color: white;
}

/* --- Trust Section: The Floating Badge --- */
.trust-bar {
    background: var(--base-white);
    max-width: 1000px;
    margin: -60px auto 0;
    position: relative;
    z-index: 20;
    border-radius: 16px;
    display: flex;
    justify-content: space-around;
    padding: 50px 20px;
    box-shadow: var(--shadow-elite);
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--brand-accent);
    margin-bottom: 5px;
}

.trust-label {
    color: var(--brand-gold);
    font-weight: 800;
    font-size: 0.95rem;
}

/* --- Section Structure: Methodical Spacing --- */
section {
    padding: 140px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.section-title .divider {
    width: 80px;
    height: 4px;
    background: var(--brand-accent);
    margin: 20px auto;
}

/* --- Services: Geometric Clarity --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--base-white);
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid #F0F0F0;
    text-align: right;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-accent);
    box-shadow: var(--shadow-elite);
}

.service-card svg {
    width: 55px;
    height: 55px;
    fill: var(--brand-gold);
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--brand-dark);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* --- Timeline: Elite Lineage --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    padding: 40px;
    background: var(--base-light);
    border-right: 6px solid var(--brand-accent);
    margin-bottom: 30px;
    border-radius: 0 12px 12px 0;
}

.timeline-date {
    font-weight: 800;
    color: var(--brand-gold);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- Footer: Corporate Mastery --- */
.master-footer {
    background: var(--brand-dark);
    color: white;
    padding: 100px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 100px;
    padding-bottom: 80px;
}

.footer-logo-box {
    background: white;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-box img {
    max-width: 100%;
    max-height: 100%;
}

.footer-col h4 {
    color: var(--brand-accent);
    margin-bottom: 35px;
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 18px;
}

.footer-col a {
    color: #A0A5A0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-row i {
    color: var(--brand-accent);
    font-size: 1.2rem;
}

.footer-bottom {
    background: #092019;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s, transform 1s;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-logo-box {
        margin-left: auto;
        margin-right: auto;
    }
}