:root {
    --blue: #1E88E5;
    --cyan: #00BCD4;
    --bg-light: #d9eaff;
    --white: #ffffff;
}

body {
    font-family: sans-serif;
    margin: 0;
    direction: rtl;
    background: var(--white);
    color: #05315c;
}

/* ---------------- HEADER ---------------- */
.header {
    position: sticky;
    top: 0;
    background: var(--blue);
    color: var(--white);
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    margin-left: 10px;
}

.brand-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
}



/* ---------------- HERO ---------------- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(120deg, var(--blue), var(--cyan));
    color: var(--white);
}

/* ---------------- FEATURES ---------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 20px;
    padding: 20px;
}

.feature-box {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    font-size: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.feature-box:hover {
    transform: scale(1.05);
    background: var(--cyan);
    color: var(--white);
}

.feature-box:active {
    transform: scale(0.95);
}

/* ---------------- FORM ---------------- */
.form-card {
    background: var(--white);
    padding: 30px;
    max-width: 600px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid var(--cyan);
    border-radius: 6px;
}

.form-card button {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--blue);
    color: var(--white);
    border-radius: 6px;
}

.form-success {
    background: #d4ffda;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #045d0d;
}

.form-error {
    background: #ffdddd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #b30000;
}

/* ---------------- FOOTER ---------------- */
.footer {
    background: var(--blue);
    padding: 30px 20px;
    color: var(--white);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    width: 30%;
    min-width: 200px;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
}
/* -------------------------------------------------- */
.section {
    padding-left: 40px;
    padding-right: 40px;
}
.form-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    color: #05315c;
}

.projects-section {
    background: var(--cyan);
    padding: 50px 40px;
    color: var(--white);
    margin-top: 50px;
}

.projects-section h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-box {
    background: rgba(255,255,255,0.18);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}

.project-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.project-box h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--white);
}

.project-box p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}


/* ================= */
.advantages-section {
    padding: 60px 40px;
    background-color: var(--white); /* یا رنگ خنثی دیگر */
    text-align: center;
}

.advantages-section h2 {
    font-size: 26px;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

/* ... کدهای قبلی .advantages-section ... */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.advantage-item {
    text-align: center;
    display: flex; /* برای استفاده از justify-content */
    flex-direction: column;
    align-items: center;
}

.advantage-icon {
    width: 80px; /* اندازه دایره */
    height: 80px; /* اندازه دایره */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    border-radius: 50%; /* برای ایجاد دایره */
    background-color: rgba(47, 137, 215, 0.813); /* رنگ پس‌زمینه دایره */
    color: var(--white); /* رنگ ایموجی */
    font-size: 32px; /* اندازه ایموجی */
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3); /* سایه ملایم به رنگ cyan */
}

/* اگر بخوای سایه یا استایل خاصی برای ایموجی لازم بود */
.advantage-icon .emoji {
    line-height: 1; /* برای اطمینان از مرکزیت ایموجی */
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.advantage-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
}




.faq-section {
    padding: 60px 40px;
    background-color: #f4f7f6; /* رنگ خنثی */
    text-align: center;
}

.faq-section h2 {
    font-size: 26px;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: right; /* برای راست‌چین شدن متن فارسی */
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* برای اینکه جواب‌ها از چهارچوب بیرون نزنند */
}

.faq-question {
    width: 100%;
    background-color: var(--white);
    color: var(--primary-dark);
    padding: 15px 20px;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-icon {
    font-size: 24px;
    color: var(--cyan); /* یا رنگ مکمل دیگر */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff; /* رنگ پس‌زمینه جواب */
}

.faq-answer p {
    margin: 0;
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
}

/* استایل برای نمایش جواب وقتی سوال کلیک شده */
.faq-item.active .faq-answer {
    max-height: 200px; /* یا ارتفاع بیشتر، بستگی به محتوا دارد */
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg); /* تغییر آیکون به منها */
}



/* اسکرول نرم (اختیاری ولی پیشنهاد میشه) */
html {
  scroll-behavior: smooth;
}

/* دکمه CTA مشاوره */
.consult-btn{
  background: #0974a1;
  color: var(--white);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 191, 255, 0.25);
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  margin: 0 10px;
}

.consult-btn:hover{
  transform: translateY(-1px);
  background: #00bcd4; /* کمی تیره‌تر از cyan */
  box-shadow: 0 10px 22px rgba(0, 191, 255, 0.35);
}
