/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Tahoma, sans-serif;
}

body {
    background: #f2f4f8;
    color: #333;
}

/* ===== Header ===== */
header {
    background: #1a73e8;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
}

.brand-text h1 {
    font-size: 1.4em;
    line-height: 1.2;
}

.brand-text span {
    font-size: .85em;
    opacity: .9;
}

/* ===== Navigation ===== */
nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .15);
    padding: 10px 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    transition: .3s;
}

nav a i {
    font-size: 18px;
    margin-bottom: 4px;
}

nav a:hover {
    background: #1558b0;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)),
                url("uploads/hero.jpg") center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 110px 20px;
    border-radius: 0 0 35px 35px;
}

.hero h2 {
    font-size: 2.4em;
    margin-bottom: 15px;
    min-height: 70px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero .btn {
    background: #ffb400;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

.hero .btn:hover {
    background: #ffa000;
    transform: translateY(-5px);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

.container h2 {
    margin-bottom: 25px;
    color: #1a73e8;
    text-align: center;
    font-size: 2.2em;
}

/* ===== Services ===== */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.service-card {
    background: #fff;
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    text-align: center;
    transition: .3s;
}

.service-card i {
    font-size: 32px;
    color: #1a73e8;
    margin-bottom: 12px;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ===== Gallery ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: 200px;  /* تنظیم ارتفاع ثابت */
    object-fit: cover;  /* این ویژگی باعث می‌شود تصویر فضای فریم را پر کند */
    object-position: center;  /* تصویر در مرکز فریم قرار می‌گیرد */
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1); /* هماهنگ */
}

/* ===== Fixed Contact ===== */
.fixed-contact {
    position: fixed;
    bottom: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fixed-contact a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.fixed-contact .wa {
    background: #25d366;
}

.fixed-contact .call {
    background: #1a73e8;
}

/* ===== Footer ===== */
footer {
    background: #1a73e8;
    color: #fff;
    text-align: center;
    padding: 22px;
    margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #1a73e8;
        justify-content: space-around;
        padding: 10px 0;
        border-radius: 20px 20px 0 0;
    }

    header {
        justify-content: center;
    }
}

/* ===== Small tweaks for the new sections' spacing ===== */
.container p {
    text-align: center;
    font-size: 1.1em;
    margin-top: 20px;
    color: #666;
}
