/* ========================================
   MAIN.CSS - Hail Application
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --main-color: #26502a;
    --main-color-alt: #1a3a1d;
    --color-para: #707070;
    --white: #ffffff;
    --light-bg: #f4f7f4;
    --border-color: #ddd;

    /* Spacing */
    --main-padding-top: 80px;
    --main-padding-bottom: 80px;
    --section-spacing: 60px;

    /* Shadows */
    --shadow-1: 0px 2px 4px 0px #00000033;
    --shadow-2: 0px 5px 10px 0px #0000000d;
    --shadow-3: 0px 5px 10px 0px #00000033;
    --shadow-4: 0px 10px 20px 0px #0000001a;

    /* Transitions */
    --main-transition: 0.3s ease;

    /* Border Radius */
    --border-radius-sm: 10px;
    --border-radius-md: 20px;
    --border-radius-lg: 40px;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: "Dubai", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #000;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--color-para);
}

.text-muted {
    color: var(--color-para) !important;
}

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

.text-white {
    color: var(--white) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--main-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--main-transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-3);
}

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

.btn-secondary:hover {
    background-color: var(--main-color);
    color: var(--white);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #000;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--main-color);
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-2);
    border: 1px solid var(--border-color);
    transition: var(--main-transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-4);
}

/* Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Utilities */
.mb-20 {
    margin-bottom: 20px;
}
.mb-30 {
    margin-bottom: 30px;
}
.mb-40 {
    margin-bottom: 40px;
}
.mb-50 {
    margin-bottom: 50px;
}
.mt-20 {
    margin-top: 20px;
}
.mt-30 {
    margin-top: 30px;
}
.mt-40 {
    margin-top: 40px;
}
.mt-50 {
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --main-padding-top: 60px;
        --main-padding-bottom: 60px;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }
}
