
body {
    background-color: var(--bg);
}

.btn-primary {
    font-family: 'TehranPlumber-font', 'Vazirmatn', sans-serif;
}



#services {
    background: var(--bg); /* Navy تیره هم‌رنگ هدر */
    padding: 3.5rem 1rem;
    border-radius: 1.5rem;
    margin-top: 3rem;
    color: var(--text);
}

#services h2 {
    color: var(--text);
    text-align: center;
    margin-bottom: 5rem;
    font-size: xx-large;
}

/* section listing Tehran regions */
.tehranplumber-regions {
    margin-top: 3rem;
}

/* add margin to the regions section title */

.tehranplumber-regions h2 {
    margin-inline-end: 2rem;
    color: var(--text);
}

/* center the region grid like paragraphs */
.tehranplumber-regions .region-grid {
    max-width: 90vw;
    margin-inline-start: auto;
    margin-inline-end: auto;
    margin-bottom: 10rem;
}

h2.districts-title {
    /* override generic .section h2 styles */
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5rem;
    color: var(--text);
    text-align: center;
}

.services-grid,
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    grid-auto-flow: dense; /* سلول خالی نمی‌گذارد */
    direction: rtl;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    padding: 1.7rem 1rem 2rem;
    color: var(--text);
    box-shadow: 0 2px 6px rgb(0 0 0 / .08), 0 0 0 2px var(--card-ring);
    transition: .25s;
}

/* clickable cards for regions */
.region-card {
    display: block;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgb(0 0 0 / .18);
}

.card i {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.card:hover i {
    color: #2563eb
}

.card h3 {
    font-size: 1.2rem;
    margin: 0 0 .6rem;
    font-weight: 700
}

.card p {
    font-size: 1rem;
    line-height: 1.98;
    margin: 0;
    color: var(--text-muted)
}


#hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin: .6rem auto 1.2rem;
    font-weight: 500;
    width: fit-content;
    text-align: center;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
    width: max-content;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    font-size: 1.05rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .4rem;
    line-height: 1.2;
    text-align: right;
    overflow-wrap: anywhere;
}

.hero-benefits li::before {
    content: "\2714";
    position: static;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2em;
}

@media (min-width: 992px) {
    #hero h1 {
        font-size: 3rem
    }

    #hero .subtitle {
        font-size: 1.6rem
    }

    .hero-benefits {
        font-size: 1.5rem
    }
}

#benefit-keywords {
    background: var(--bg);
    padding: 3.5rem 1rem;
    border-radius: 1.5rem;
    margin-top: 3rem;
    color: var(--text);
}

#benefit-keywords h2 {
    color: var(--text);
    text-align: center;
    margin-bottom: 5rem;
    font-size: 2.5rem;
}

.benefit-grid {
    list-style: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    direction: rtl;
}


.benefit-grid li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    line-height: 1.8;
    text-align: right;
}

.benefit-grid li::before {
    content: "\2714";
    position: static;
    color: var(--accent);
    font-weight: 800;
}


/* Pricing section */
.pricing {
    background: var(--bg);
    /* Use the same horizontal padding as other sections */
    padding: 3.5rem 2rem;
    border-radius: 1.5rem;
    margin-top: 3rem;
    color: var(--text);
}

.pricing h2 {
    color: var(--text);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.pricing p {
    /*max-width: 800px;*/
    margin: 0 auto 1.5rem;
    line-height: 2.2;
    font-size: 1rem;
}

.price-highlight {
    color: var(--accent);
    font-weight: 700;
}

.table-container {
    overflow-x: auto;
    min-inline-size: 100%;
}

@media (max-width: 300px) {
    .table-container {
        overflow-x: auto;
    }
}

.pricing-table {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgb(0 0 0 / .08), 0 0 0 2px var(--card-ring);
    font-size: .95rem;
}

.pricing-table th,
.pricing-table td {
    border: 1px solid var(--border);
    padding: .75rem 1rem;
    text-align: center;
}

.pricing-table th {
    background: var(--primary);
    color: var(--btn-text);
    font-weight: 700;
}

.pricing-table tbody tr {
    cursor: pointer;
}

.pricing-table tbody tr:nth-child(even) {
    background: var(--bg);
}

.pricing-table tbody tr:hover {
    background: var(--accent);
    color: var(--text);
}

.faq-pricing {
    margin-top: 2rem;
    max-width: 80vw;
    margin-inline-start: auto;
    margin-inline-end: auto;
}

/* Why section */
#why {
    background: var(--bg);
    padding: 3.5rem 1rem;
    border-radius: 1.5rem;
    margin-top: 3rem;
    color: var(--text);
}

#why h2 {
    color: var(--text);
    text-align: center;
    margin-bottom: 5rem;
    font-size: 2.5rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    direction: rtl;
}

.why-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    padding: 1.7rem 1rem;
    color: var(--text);
    box-shadow: 0 2px 6px rgb(0 0 0 / .08), 0 0 0 2px var(--card-ring);
}

.why-card p {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}


.faq-pricing h3 {
    font-size: 1.5rem;
}

.faq-pricing h4 {
    font-size: 1.1rem;
}

/* Intro and FAQ sections */
#intro,
#faq {
    background: var(--bg);
    padding: 3.5rem 1rem;
    border-radius: 1.5rem;
    margin-top: 3rem;
    color: var(--text);
}

.faq-content {
    max-width: 80vw;
    margin-inline-start: auto;
    margin-inline-end: auto;
    font-size: 1rem;
}

#intro h2,
#faq h2 {
    color: var(--text);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .pricing {
        padding: 2rem 1rem;
    }
}

@media (max-width: 300px) {
    .services-grid,
    .region-grid,
    .benefit-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: var(--space-2);
    }

    .card h3 {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    .card p {
        font-size: 0.8rem;
        overflow-wrap: anywhere;
    }

    .card i {
        font-size: 1.5rem;
    }
}

