/* CSS Design System for Daem Platform Redesign */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0b2545;      /* Deep Navy Blue for Trust */
    --primary-light: #134074;      /* Lighter Navy */
    --accent-color: #14b8a6;       /* Vibrant Teal */
    --accent-dark: #0f766e;        /* Darker Teal */
    --accent-light: #f0fdfa;       /* Soft Teal background */
    --tabby-color: #3df2b4;        /* Tabby Green */
    --emkan-color: #0056b3;        /* Emkan Blue */
    --text-main: #0f172a;          /* Slate 900 */
    --text-muted: #475569;         /* Slate 600 */
    --bg-light: #f8fafc;           /* Slate 50 */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(11, 37, 69, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Cairo', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* Common Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    position: relative;
}

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

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Header & Navbar */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    border-radius: var(--radius-sm);
    margin-left: 10px;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(11, 37, 69, 0.05);
}

.nav-cta {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.2);
    transition: var(--transition);
}

.nav-cta:hover {
    background-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.05) 0%, rgba(255, 255, 255, 1) 90%);
    padding: 100px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-light);
    color: var(--accent-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(20, 184, 166, 0.15);
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 37, 69, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(11, 37, 69, 0.02);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Calculator Component */
.calc-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    z-index: 10;
    animation: fadeInRight 0.8s ease;
}

.calc-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 1.5px solid var(--bg-light);
    padding-bottom: 15px;
}

.calc-group {
    margin-bottom: 25px;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calc-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.calc-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-color);
    background-color: var(--accent-light);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

/* Styled Range Input */
.calc-range {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 3px solid var(--bg-white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.calc-range::-webkit-slider-thumb:hover {
    background: var(--accent-dark);
    transform: scale(1.1);
}

.partner-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.partner-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.partner-option img {
    height: 35px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-option span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.partner-option.active {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
}

.partner-option.active img {
    filter: none;
    opacity: 1;
}

.partner-option.active span {
    color: var(--accent-dark);
    font-weight: 700;
}

.calc-results {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border: 1px dashed var(--border-color);
}

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

.result-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.result-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.result-val span {
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 2px;
}

.calc-btn {
    width: 100%;
    text-align: center;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 50px 0;
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 10px;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--bg-white);
}

.stat-label {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
}

/* How It Works Steps */
.steps-section {
    background-color: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.step-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.step-num {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 15px 0 15px;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features Section (Why Us) */
.features-section {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(20, 184, 166, 0.08);
    color: var(--accent-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Partners Section */
.partners-section {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.partner-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    max-width: 250px;
    width: 100%;
}

.partner-logo-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.partner-logo-item img {
    height: 48px;
    object-fit: contain;
}

.partner-logo-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    background-color: var(--bg-light);
    padding: 4px 16px;
    border-radius: 50px;
}

/* Request/Application Form Section */
.form-section {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.03) 0%, rgba(11, 37, 69, 0.03) 100%);
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.form-btn {
    width: 100%;
    padding: 16px;
    background-color: #25d366; /* WhatsApp Green */
    color: var(--bg-white);
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}

.form-btn:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.form-btn i {
    margin-left: 10px;
    font-size: 1.3rem;
}

/* Info Pages Template (About, Privacy, Terms) */
.page-hero {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.page-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
}

.page-breadcrumbs a:hover {
    color: var(--accent-color);
}

.page-content-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 50px 40px;
    margin: -30px auto 60px;
    max-width: 900px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.rich-text {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.rich-text h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0 15px;
}

.rich-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.rich-text ul {
    margin: 0 20px 20px 0;
    list-style-type: square;
}

.rich-text li {
    margin-bottom: 10px;
}

/* Footer Design */
.site-footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0 20px;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 15px;
    text-decoration: none;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 8px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-info-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-badges img {
    height: 30px;
    background-color: rgba(255,255,255,0.05);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-badge {
        margin: 0 auto 20px;
    }
    .hero-btns {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    .navbar {
        position: relative;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-bottom: 2px solid var(--accent-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .nav-menu.open {
        max-height: 300px;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-link {
        display: block;
        padding: 15px 0;
        border-radius: 0;
        border-bottom: 1px solid var(--bg-light);
    }
    .nav-cta-wrapper {
        display: none;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .partner-selector {
        grid-template-columns: 1fr;
    }
    .partners-logos {
        gap: 20px;
    }
    .form-wrapper {
        padding: 20px;
    }
}
