
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 110px; /* برای هدر fixed */
    background: #f6f7ff;
    font-family: 'IRANSans', sans-serif;
    line-height: 1.7;
    color: #222;
}

/* =======================
   HEADER
======================= */
header {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 75px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo {
    height: clamp(40px, 5vw, 65px);
}

.hlogo {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(15px, 2vw, 25px);
    padding: 0;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    color: #232ed1;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: #232ed1;
    transition: .3s;
}

nav ul li a:hover::after {
    width: 100%;
}

    .menu-btn {
    display: none;
    font-size: clamp(28px, 5vw, 34px);
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 1100;
    }







/* =======================
   MOBILE MENU
======================= */
@media (max-width: 830px) {

    header {
        justify-content: center;
    }

    .menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(12px);
        padding-top: 8px;
        padding-right: 7px;
        gap: 2.5rem;

        transform: translateY(+100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: transform 0.4s ease, opacity 0.3s ease;
        z-index: 1000;
            justify-content: center;
    align-items: center;
    }

      nav ul li {
    width: 80%;
    text-align: center;   /* متن دقیقاً وسط */
  }

    nav ul li a {
    display: block;
    text-align: center;
    font-size: 22px;      /* خواناتر در موبایل */
  }




    nav ul.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        text-align: center;
    }
}






/* =======================
   CONTACT WRAPPER (GRID)
======================= */
.contact-wrapper {
    max-width: 1300px;
    margin: 10px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 40px);
}

/* موبایل و تبلت */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
}

/* مانیتور خیلی بزرگ */
@media (min-width: 1600px) {
    .contact-wrapper {
        max-width: 1100px;
    }
}

/* =======================
   COMMON BOX STYLE
======================= */
.form-box,
.info-box {
    background: #fff;
    padding: clamp(20px, 4vw, 35px);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
}

/* =======================
   INFO BOX
======================= */
.info-box h2 {
    color: #232ed1;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15.5px;
}

.info-item img {
    width: 26px;
    height: 26px;
}

.map-box iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 14px;
    margin-top: 15px;
}

/* =======================
   FORM
======================= */
.form-box h2 {
    color: #232ed1;
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 500px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    margin-bottom: 8px;
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
}

.form-field textarea {
    height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #232ed1;
    outline: 2px solid #232ed1;
}

/* =======================
   ROBOT + BUTTON
======================= */
.robot-box {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
}

.send-btn {
    width: 100%;
    padding: 13px;
    background: #232ed1;
    border: none;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
}

.send-btn:hover {
    opacity: .85;
}

/* =======================
   TOAST
======================= */
.toast {
    position: fixed;
    top: 90px;
    right: 30px;
    background: #fff;
    padding: 18px 26px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    font-weight: 700;
    min-width: 300px;
    font-size: 17px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
}

.toast-progress {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 7px;
    background: linear-gradient(90deg,#232ed1,#6a7bff);
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 3s linear;
}

/* =======================
   FOOTER
======================= */
footer.footer {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 40px 20px;
    border-top: 6px solid #232ed1;
    max-width: 1500px;
    margin: 40px auto 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.footer-title {
    color: #232ed1;
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.footer-link {
    display: block;
    margin: 0 auto 10px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: .3s;
    width: fit-content;
}

.footer-link:hover {
    color: #232ed1;
    transform: scale(1.04);
}

.footer-contact-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact-item img {
    width: 22px;
    height: 22px;
}
