* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    color: #24313a;
    background: #f5f7f8;
}
header {
    background: #17354a;
    color: white;
    padding: 12px 6%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

header h1 {
    margin: 0;
    font-size: 23px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #f59e0b;
}
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 24px;
    background: white;
}

footer {
    background: #17354a;
    color: white;
    text-align: center;
    padding: 20px;
}
/* بخش معرفی اصلی */
/* HERO SLIDER */

.hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    background: #17354a;
    direction: rtl;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.active img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 25, 38, 0.35),
        rgba(10, 25, 38, 0.78)
    );
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    max-width: 650px;
    color: white;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.hero-slide.active .hero-content {
    opacity: 1;
}

.hero-content span {
    color: #f59e0b;
    font-size: 16px;
    font-weight: bold;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.6;
    margin: 15px 0;
}

.hero-content p {
    font-size: 19px;
    line-height: 2;
    margin-bottom: 30px;
}

.hero-button {
    position: absolute;
    z-index: 5;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);

    display: inline-block;
    background: #d97706;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.3s;
}

.hero-button:hover {
    background: #f59e0b;
}
/* Navigation arrows */

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.hero-arrow:hover {
    background: #d97706;
}

.hero-arrow.prev {
    right: 20px;
}

.hero-arrow.next {
    left: 20px;
}

/* Indicators */

.hero-indicators {
    position: absolute;
    z-index: 4;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-indicators button {
    width: 30px;
    height: 5px;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.hero-indicators button.active {
    background: #f59e0b;
    width: 45px;
}

/* Mobile */

@media (max-width: 768px) {

.hero-slider {
    position: relative;
    width: 100%;
    max-width: none;
    height: 450px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}

    .hero-content {
        right: 8%;
        left: 8%;
        max-width: none;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

.hero-button {
    position: absolute;
    z-index: 5;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);

    display: inline-block;
    background: #d97706;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.3s;
}

.hero-button:hover {
    background: #f59e0b;
}

/* بخش خدمات */
.services {
    margin-top: 50px;
}

.services h2 {
    color: #17354a;
    margin-bottom: 25px;
}

.service-list {
    display: flex;
    gap: 20px;
}

.service-item {
    flex: 1;
    background: #f5f7f8;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e5e8;
}

.service-item h3 {
    color: #17354a;
}

.service-item p {
    line-height: 1.9;
}
@media (max-width: 768px) {

    main {
        margin: 15px;
        padding: 15px;
    }

    .hero {
        padding: 35px 20px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-list {
        flex-direction: column;
    }

    nav {
        gap: 12px;
    }
    header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 18px;
}

header h1 {
    font-size: 24px;
}

nav {
    gap: 16px;
}
}
/* معرفی گرمایش فضای باز رستوران‌ها */
.restaurant-section {
    margin-top: 50px;
    padding: 45px;
    background: #17354a;
    color: white;
    border-radius: 8px;
}

.restaurant-content {
    max-width: 850px;
}

.restaurant-content h2 {
    font-size: 27px;
    color: #f59e0b;
    margin-top: 0;
    line-height: 1.8;
}

.restaurant-content p {
    font-size: 17px;
    line-height: 2.2;
}

.restaurant-content ul {
    line-height: 2.5;
    padding-right: 25px;
}

@media (max-width: 768px) {
    .restaurant-section {
        padding: 25px 20px;
    }

    .restaurant-content h2 {
        font-size: 22px;
    }
}
/* چیدمان تصویر و متن رستوران */
.restaurant-section {
    display: flex;
    align-items: center;
    gap: 35px;
}

.restaurant-image {
    width: 45%;
    height: 330px;
    object-fit: cover;
    border-radius: 8px;
}

.restaurant-content {
    flex: 1;
    max-width: none;
}

/* نمایش در موبایل */
@media (max-width: 768px) {
    .restaurant-section {
        flex-direction: column;
    }

    .restaurant-image {
        width: 100%;
        height: auto;
    }

    .restaurant-content {
        width: 100%;
    }
}
/* بخش ویژه مشتریان فضای باز */
.outdoor-special {
    margin-top: 50px;
    padding: 45px 35px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    text-align: center;
}

.outdoor-special h2 {
    color: #9a3412;
    font-size: 28px;
    line-height: 1.8;
}

.outdoor-special > p {
    max-width: 850px;
    margin: 20px auto 35px;
    color: #444;
    font-size: 17px;
    line-height: 2.2;
}

.outdoor-benefits {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.outdoor-benefits > div {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #fed7aa;
}

.outdoor-benefits h3 {
    color: #c2410c;
}

.outdoor-benefits p {
    line-height: 1.9;
}

.outdoor-button {
    display: inline-block;
    padding: 14px 30px;
    background: #c2410c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.outdoor-button:hover {
    background: #9a3412;
}

@media (max-width: 768px) {
    .outdoor-special {
        padding: 30px 20px;
    }

    .outdoor-special h2 {
        font-size: 23px;
    }

    .outdoor-benefits {
        flex-direction: column;
    }
}
.service-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 18px;
}
.service-item {
    flex: 1;
    background: white;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e0e5e8;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
/* فرم درخواست مشاوره */
.contact-form-section {
    max-width: 750px;
    margin: 50px auto;
    padding: 35px;
    background: #f5f7f8;
    border-radius: 10px;
    border: 1px solid #e0e5e8;
}

.contact-form-section h2 {
    color: #17354a;
    margin-top: 0;
}

.contact-form-section > p {
    line-height: 2;
    color: #555;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd4da;
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    background: white;
}

.form-group textarea {
    resize: vertical;
}

.contact-button {
    background: #c2410c;
    color: white;
    border: none;
    padding: 13px 30px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-button:hover {
    background: #9a3412;
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 22px 16px;
        margin: 30px auto;
    }
}

/* تمام عرض شدن اسلایدر صفحه اصلی */

main:has(.hero-slider) {
    margin-top: 0;
    padding-top: 0;
}

main:has(.hero-slider) .hero-slider {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}
/* منوی استیکی */

.sticky-header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;

    padding: 12px 6%;
    background: #17354a;
    color: white;

    transform: translateY(-100%);
    transition: transform 0.35s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.sticky-header.visible {
    transform: translateY(0);
}

.sticky-header h2 {
    margin: 0;
    font-size: 23px;
}

.sticky-header nav {
    display: flex;
    gap: 25px;
}

.sticky-header nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.sticky-header nav a:hover {
    color: #f59e0b;
}

/* نمایش در موبایل */

@media (max-width: 768px) {
    .sticky-header {
        padding: 12px 15px;
        gap: 15px;
        flex-wrap: wrap;
    }

    .sticky-header h2 {
        font-size: 20px;
    }

    .sticky-header nav {
        gap: 15px;
    }
}
.service-item {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
/* صفحه اختصاصی خدمات */

.service-detail-hero {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 45px;
}

.service-detail-image {
    flex: 1;
}

.service-detail-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

.service-detail-intro {
    flex: 1;
}

.service-detail-intro h2 {
    color: #17354a;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-detail-intro p {
    line-height: 2.2;
    font-size: 17px;
}

.service-detail-button {
    display: inline-block;
    background: #f59e0b;
    color: #17354a;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 15px;
}

.service-detail-button:hover {
    background: #d97706;
}

.service-detail {
    line-height: 2.2;
}

.service-detail h2 {
    color: #17354a;
}

@media (max-width: 768px) {
    .service-detail-hero {
        flex-direction: column;
    }

    .service-detail-image,
    .service-detail-intro {
        width: 100%;
    }

    .service-detail-image img {
        height: 250px;
    }
}
/* معرفی فنی گرمایش تابشی */

.heating-description {
    margin: 50px 0;
    line-height: 2.3;
}

.heating-description h2,
.heating-benefits h2 {
    color: #17354a;
    font-size: 25px;
    margin-bottom: 20px;
}

.heating-description p {
    text-align: justify;
    font-size: 16px;
}

/* مزایای گرمایش تابشی */

.heating-benefits {
    margin: 50px 0;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit-item {
    background: #f5f7f8;
    border-right: 4px solid #f59e0b;
    padding: 22px;
    border-radius: 6px;
}

.benefit-item h3 {
    color: #17354a;
    margin-top: 0;
}

.benefit-item p {
    line-height: 2;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .benefit-list {
        grid-template-columns: 1fr;
    }
}
/* کاربردهای گرمایش تابشی */

.heating-applications {
    margin: 50px 0;
}

.heating-applications h2 {
    color: #17354a;
    font-size: 25px;
    margin-bottom: 25px;
}

.application-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.application-item {
    padding: 22px;
    border: 1px solid #e2e8ec;
    border-radius: 8px;
    transition: 0.3s;
}

.application-item:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
}

.application-item h3 {
    color: #17354a;
    margin-top: 0;
}

.application-item p {
    line-height: 2;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .application-list {
        grid-template-columns: 1fr;
    }
}
/* گالری تصاویر */

.heating-gallery {
    margin: 60px 0 30px;
}

.gallery-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    height: 230px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #e5e9ec;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-zoom {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(23, 53, 74, 0.85);
    color: white;
    font-size: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.gallery-item:hover .gallery-zoom {
    background: #f59e0b;
    color: #17354a;
}

/* پنجره نمایش تصویر بزرگ */

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
    background: #f59e0b;
    color: #17354a;
}

.gallery-close {
    top: 20px;
    right: 25px;
    font-size: 35px;
    width: 45px;
    height: 45px;
}

.gallery-prev,
.gallery-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 22px;
}

.gallery-prev {
    right: 25px;
}

.gallery-next {
    left: 25px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 15px;
}

@media (max-width: 768px) {

    .gallery-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        height: 160px;
    }

    .gallery-lightbox {
        padding: 45px 10px;
    }

    .gallery-lightbox img {
        max-width: 100%;
        max-height: 75vh;
    }

    .gallery-prev {
        right: 8px;
    }

    .gallery-next {
        left: 8px;
    }

}

/* اصلاح فاصله بالای صفحه خدمات */

main:has(.services) {
    margin-top: 0;
}
.success-message {
    background: #e8f5e9;
    color: #256b35;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.error-message {
    background: #ffebee;
    color: #b71c1c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.error-message ul {
    margin: 0;
    padding-right: 20px;
}
/* Contact Methods */

.contact-methods-section {
    margin: 40px 0;
    text-align: center;
}

.contact-methods-section h2 {
    margin-bottom: 25px;
    color: #17354a;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
}

.contact-method-card {
    display: flex;
    width: 50%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8ec;
    border-radius: 10px;
    padding: 12px 7px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* دایره آیکون */
.contact-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f7;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* اندازه SVG */
.contact-method-icon svg {
    width: 36px;
    height: 36px;
}

/* رنگ اختصاصی آیکون‌ها */
.contact-method-card:nth-child(1) .contact-method-icon {
    color: #f59e0b;
}

.contact-method-card:nth-child(2) .contact-method-icon {
    color: #25D366;
}

.contact-method-card:nth-child(3) .contact-method-icon {
    color: #a855f7;
}

/* رنگ لینک حتی پس از بازدید */
.contact-method-card:link,
.contact-method-card:visited {
    color: #17354a;
}

/* افکت هاور کارت */
.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

/* افکت هاور آیکون بدون تغییر رنگ اصلی */
.contact-method-card:hover .contact-method-icon {
    background: #e2e8ec;
    transform: scale(1.1);
}

/* متن زیر آیکون */
.contact-method-card p {
    margin: 7px 0 0;
    color: #17354a;
    font-weight: 600;
    direction: ltr;
}

/* نمایش موبایل */
@media (max-width: 600px) {
    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-method-card {
        width: 50%;
        padding: 12px 7px;
    }
}