/* Niavaran page specific styles */
body {
    /* use theme variables so light/dark modes work */
    background-color: var(--bg);
}

.hero {
    background: url("images/drain-cleaning-neighborhoods-tehran-desktop-1500x1000.webp") no-repeat local center;
}

@media (max-width: 768px) {
    .hero {
        background: url("images/drain-cleaning-neighborhoods-tehran-mobile-768x1152.webp") no-repeat local center;
    }
}


.hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin: .6rem 0 1.2rem;
    font-weight: 500;
}

.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: #ff0aac;
    font-weight: 800;
    font-size: 1.2em;
}


.services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    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;
}

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

.card h3 {
    font-size: 1.5rem;
    margin: 0 0 .6rem;
    font-weight: 700;
    text-align: center;
}

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

#services {
    background: var(--bg);
    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: 2.5rem;
}

.section h3 {
    font-size: 1.2rem;
}

.section h4 {
    font-size: 1.5rem;
}

@media (min-width: 600px) {
    .services {
        grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1024px) {
    .services {
        grid-template-columns:repeat(auto-fill, minmax(340px, 1fr));
    }
}

/* link harmony with homepage */
a {
    color: var(--link);
}

a:visited {
    color: var(--link-visited);
}

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

    .hero .subtitle {
        font-size: 1.4rem
    }

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

/* Align bullet lists with surrounding text */
.section ul {
    max-width: 80vw;
    margin: 0 auto 2rem;
    padding-inline-end: 1.5rem;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: .35em 1rem;
    font-size: 1em;
}

.section ul li {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    line-height: 1.35;
    margin-bottom: .35em;
}

.section ul li::before {
    content: "\2714";
    position: static;
    color: #28a745;
    font-weight: 800;
    font-size: 1.2em;
}

/* Style ordered lists similar to paragraphs */
.section ol {
    max-width: 80vw;
    margin: 0 auto 2rem;
    padding-inline-end: 1.5rem;
    font-size: 1.1em; /* 30% larger font */
}

.section ol li {
    line-height: 1.5; /* increase vertical spacing */
    margin-bottom: 0.3em; /* 30% extra space */
}

@media (min-width: 600px) {
    .section ul {
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .section ul {
        grid-template-columns:repeat(2, 1fr);
    }
}

/* Add space before the footer on neighborhood pages */
#footer-placeholder {
    margin-top: 1.5cm;
}
