/* ================== الضبط الأساسي والهوية البصرية ================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; font-family: 'Tajawal', Tahoma, sans-serif; }
html, body { width: 100%; margin: 0; padding: 0; background-color: #f8fafc; color: #334155; line-height: 1.7; overflow-x: hidden; scroll-behavior: smooth;}

:root {
    --primary: #064e3b; /* الأخضر الداكن الملكي */
    --primary-light: #047857;
    --primary-dark: #022c22;
    --accent: #d97706; /* الذهبي / الخردلي */
    --accent-hover: #b45309;
    --dark: #0f172a;
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
}

/* ================== الترويسة والتنقل ================== */
header {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-size: 1.6em; font-weight: 900; color: var(--primary); }
.logo-text span { color: var(--accent); }

.nav-links { display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 700; transition: 0.3s; font-size: 0.95em; }
.nav-links a:hover { color: var(--accent); }

.btn-contact {
    background: var(--primary); color: var(--white); padding: 10px 24px;
    border-radius: 8px; font-weight: 700; text-decoration: none; transition: 0.3s; display: flex; gap: 8px; align-items: center;
}
.btn-contact:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ================== الواجهة الترحيبية (Hero) ================== */
.hero {
    background: var(--primary);
    color: var(--white);
    padding: 120px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.1) 0%, transparent 60%);
}
.hero h1 { font-size: 3.5em; font-weight: 900; margin-bottom: 20px; line-height: 1.2; position: relative; z-index: 1;}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.2em; max-width: 700px; margin: 0 auto 40px; color: #cbd5e1; position: relative; z-index: 1;}

.btn-accent {
    background: var(--accent); color: var(--white); padding: 15px 35px;
    border-radius: 8px; font-weight: 800; text-decoration: none; font-size: 1.1em;
    display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; position: relative; z-index: 1;
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3); }

/* ================== قطاعات العمل (Hub Services) ================== */
.services-section { padding: 80px 5%; text-align: center; background: var(--bg-light); }
.section-title { font-size: 2.5em; font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1em; margin-bottom: 50px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background: var(--white); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-soft); border: 1px solid var(--border); transition: 0.3s;
    display: flex; flex-direction: column; text-align: right;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(6, 78, 59, 0.1); border-color: var(--primary-light); }

.card-header { background: var(--primary); padding: 30px 20px; color: var(--accent); font-size: 3em; text-align: center;}
.card-body { padding: 30px 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between;}
.card-body h3 { margin: 0 0 15px 0; color: var(--primary); font-size: 1.5em; font-weight: 800;}
.card-body p { color: var(--text-muted); font-size: 0.95em; margin-bottom: 25px; line-height: 1.8;}
.btn-outline-primary {
    border: 2px solid var(--primary); color: var(--primary); padding: 10px; border-radius: 8px;
    font-weight: 700; text-decoration: none; text-align: center; transition: 0.3s; display: block;
}
.service-card:hover .btn-outline-primary { background: var(--primary); color: var(--white); }

/* ================== التذييل ================== */
footer { background: var(--primary-dark); color: white; padding: 40px 5% 20px; text-align: center; }
.footer-text { color: #94a3b8; font-size: 0.9em; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;}

/* ==========================================
   Auth Pages (Login / Register) Styles
   ========================================== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8fafc;
    padding: 20px;
}
.auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 450px;
}
.auth-logo {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #0d5c46;
    margin-bottom: 10px;
}
.auth-logo span {
    color: #d4af37;
}
.auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: #0d5c46;
}
.btn-solid {
    width: 100%;
    padding: 14px;
    background-color: #0d5c46;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}
.btn-solid:hover {
    background-color: #0a4635;
}
.auth-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #64748b;
}
.auth-links a {
    color: #d4af37;
    font-weight: 700;
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
}