/* =========================================================
   ISFAHANWEB HOME 5W
   Bright / Persian Modern / Isfahan Inspired
========================================================= */

.iw-home {
    --iw-paper: #faf7f0;
    --iw-white: #fffdf9;
    --iw-ink: #2D3748;
    --iw-muted: #697a7d;
    --iw-turquoise: #2EB3F0;
    --iw-turquoise-dark: #2497C8;
    --iw-blue: #2EB3F0;
    --iw-clay: #FF8A00;
    --iw-sand: #e6d7bb;
    --iw-line: #e5ded0;
    --iw-shadow: 0 18px 60px rgba(33,52,58,.08);

    background: var(--iw-paper);
    color: var(--iw-ink);
    overflow: hidden;
}

.iw-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.iw-section {
    padding: 96px 0;
}

.iw-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--iw-turquoise-dark);
    font-size: .88rem;
    font-weight: 800;
}

.iw-section-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(22,139,137,.22);
    border-radius: 999px;
    color: var(--iw-turquoise-dark);
    background: rgba(22,139,137,.06);
    font: 700 .72rem/1 sans-serif;
    letter-spacing: .12em;
}

.iw-section h2,
.iw-hero h1 {
    margin: 0;
    color: var(--iw-ink);
    line-height: 1.35;
}

.iw-section h2 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.iw-section p,
.iw-hero p {
    color: var(--iw-muted);
    line-height: 2;
}

.iw-section-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 24px;
    margin-bottom: 42px;
}

.iw-section-head p {
    max-width: 700px;
    margin-bottom: 0;
}


/* HERO */

.iw-hero {
    position: relative;
    padding: 88px 0 108px;
    background:
        radial-gradient(circle at 14% 18%, rgba(22,139,137,.09), transparent 25%),
        radial-gradient(circle at 82% 40%, rgba(185,111,77,.08), transparent 24%),
        linear-gradient(180deg, #fffdf9 0%, #faf7f0 100%);
}

.iw-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.iw-hero h1 {
    font-size: clamp(2.5rem, 5.8vw, 5rem);
    letter-spacing: -.045em;
}

.iw-hero h1 strong {
    display: block;
    color: var(--iw-turquoise-dark);
    font-weight: 900;
}

.iw-hero-lead {
    max-width: 680px;
    margin: 28px 0 30px;
    font-size: 1.06rem;
}

.iw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.iw-btn {
    display: inline-flex;
    min-height: 50px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.iw-btn:hover {
    transform: translateY(-2px);
}

.iw-btn-primary {
    background: var(--iw-turquoise-dark);
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(15,109,107,.18);
}

.iw-btn-secondary {
    border: 1px solid var(--iw-line);
    background: rgba(255,255,255,.72);
    color: var(--iw-ink) !important;
}

.iw-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.iw-hero-features li {
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--iw-line);
    color: var(--iw-muted);
    font-size: .84rem;
}

.iw-isfahan-frame {
    position: relative;
    min-height: 510px;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid rgba(22,139,137,.15);
    border-radius: 38px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(233,246,242,.9));
    box-shadow: var(--iw-shadow);
}

.iw-isfahan-pattern {
    position: absolute;
    inset: -60px -40px auto auto;
    width: 390px;
    height: 390px;
    opacity: .22;
    transform: rotate(22deg);
    background:
        repeating-conic-gradient(
            from 45deg,
            var(--iw-turquoise) 0 10deg,
            transparent 10deg 20deg
        );
    border-radius: 50%;
    mask-image: radial-gradient(circle, #000 0 55%, transparent 72%);
}

.iw-isfahan-frame strong {
    position: relative;
    font-size: clamp(4rem, 8vw, 7rem);
    color: var(--iw-turquoise-dark);
    line-height: 1;
}

.iw-visual-kicker {
    position: relative;
    margin-bottom: 10px;
    color: var(--iw-clay);
    font: 800 .72rem/1 sans-serif;
    letter-spacing: .28em;
}

.iw-isfahan-frame p {
    position: relative;
    margin: 14px 0 20px;
}

.iw-visual-points {
    position: relative;
    display: flex;
    gap: 8px;
}

.iw-visual-points span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(22,139,137,.13);
    font-size: .78rem;
}


/* WHAT */

.iw-card-grid {
    display: grid;
    gap: 18px;
}

.iw-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.iw-card {
    min-height: 300px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    border: 1px solid var(--iw-line);
    background: var(--iw-white);
    box-shadow: 0 8px 32px rgba(33,52,58,.04);
}

.iw-card-no {
    color: var(--iw-clay);
    font: 800 .72rem/1 sans-serif;
}

.iw-card h3 {
    margin: 45px 0 12px;
    font-size: 1.22rem;
}

.iw-card p {
    margin: 0 0 22px;
}

.iw-card a {
    margin-top: auto;
    color: var(--iw-turquoise-dark);
    font-weight: 800;
    text-decoration: none;
}


/* WHO */

.iw-who {
    background: #fffdf9;
}

.iw-two-col {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.iw-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.iw-chip-grid span {
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--iw-paper);
    border: 1px solid var(--iw-line);
    font-weight: 700;
}


/* WHERE */

.iw-local-panel {
    position: relative;
    overflow: hidden;
    padding: 54px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, #eaf6f2 0%, #f7efe4 100%);
}

.iw-local-panel::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: -60px;
    bottom: -100px;
    border: 28px double rgba(22,139,137,.08);
    transform: rotate(45deg);
}

.iw-local-values {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 38px;
}

.iw-local-values article {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(4px);
}

.iw-local-values strong {
    font-size: 1.05rem;
}


/* WHY */

.iw-reason-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.iw-reason-grid article {
    padding: 26px;
    border-radius: 20px;
    background: var(--iw-white);
    border-top: 3px solid var(--iw-turquoise);
}


/* WHEN */

.iw-when {
    background: #fffdf9;
}

.iw-check-list {
    display: grid;
    gap: 12px;
}

.iw-check-list div {
    padding: 20px 22px;
    display: grid;
    gap: 4px;
    border-radius: 16px;
    border: 1px solid var(--iw-line);
    background: var(--iw-paper);
}

.iw-check-list strong {
    color: var(--iw-ink);
}

.iw-check-list span {
    color: var(--iw-muted);
    line-height: 1.8;
}


/* HOW */

.iw-process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.iw-process article {
    position: relative;
    padding: 24px 20px;
    border-radius: 18px;
    background: var(--iw-white);
    border: 1px solid var(--iw-line);
}

.iw-process span {
    display: block;
    margin-bottom: 30px;
    color: var(--iw-clay);
    font: 800 .72rem/1 sans-serif;
}

.iw-process strong {
    display: block;
    margin-bottom: 7px;
}


/* PORTFOLIO */

.iw-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.iw-project {
    padding: 14px 14px 24px;
    border-radius: 24px;
    background: var(--iw-white);
    border: 1px solid var(--iw-line);
}

.iw-project-visual {
    min-height: 270px;
    padding: 22px;
    display: flex;
    align-items: flex-end;
    border-radius: 17px;
    overflow: hidden;
}

.iw-project-visual span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: var(--iw-ink);
    font: 700 .7rem/1 sans-serif;
}

.iw-project-visual-1 {
    background:
        linear-gradient(145deg, #d8eeea, #91c6bc);
}

.iw-project-visual-2 {
    background:
        linear-gradient(145deg, #f1e0c5, #d6a879);
}

.iw-project-visual-3 {
    background:
        linear-gradient(145deg, #dbe8ee, #8fb4c5);
}

.iw-project h3 {
    margin: 20px 8px 5px;
}

.iw-project p {
    margin: 0 8px;
}

.iw-text-link {
    align-self: center;
    color: var(--iw-turquoise-dark);
    font-weight: 800;
    text-decoration: none;
}


/* FINAL CTA */

.iw-final-cta {
    padding: 40px 0 100px;
}

.iw-final-cta-inner {
    padding: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border-radius: 30px;
    background: var(--iw-ink);
    color: #fff;
}

.iw-final-cta h2 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    line-height: 1.45;
    color: #fff;
}

.iw-final-cta p {
    margin-bottom: 0;
    color: rgba(255,255,255,.7);
}

.iw-final-cta .iw-kicker {
    color: #76d1cb;
}

.iw-final-cta .iw-btn-secondary {
    color: #fff !important;
    border-color: rgba(255,255,255,.25);
    background: transparent;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

    .iw-hero-grid,
    .iw-two-col {
        grid-template-columns: 1fr;
    }

    .iw-card-grid-4,
    .iw-reason-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .iw-process {
        grid-template-columns: repeat(3, 1fr);
    }

    .iw-hero-visual {
        max-width: 720px;
    }

}

@media (max-width: 760px) {

    .iw-shell {
        width: min(100% - 28px, 1180px);
    }

    .iw-section {
        padding: 68px 0;
    }

    .iw-hero {
        padding: 60px 0 74px;
    }

    .iw-hero-grid {
        gap: 40px;
    }

    .iw-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.8rem);
    }

    .iw-isfahan-frame {
        min-height: 360px;
        padding: 30px;
    }

    .iw-section-head {
        grid-template-columns: 1fr;
    }

    .iw-card-grid-4,
    .iw-reason-grid,
    .iw-local-values,
    .iw-project-grid,
    .iw-chip-grid {
        grid-template-columns: 1fr;
    }

    .iw-process {
        grid-template-columns: 1fr;
    }

    .iw-local-panel {
        padding: 30px 22px;
    }

    .iw-final-cta-inner {
        padding: 34px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

}

/* ======================================================
   ISFAHANWEB W5 ENRICHED CONTENT
   Content layer only — layout remains frozen
====================================================== */

.iw-w5-enriched {
    max-width: 880px;
    margin: 12px 0 28px;

    color: #66757c;

    font-size: .96rem;
    font-weight: 500;
    line-height: 2.05;
}

.iw-w5-enriched strong {
    color: #2D3748;
}

.iw-w5-enriched a {
    color: #2EB3F0;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 700px) {

    .iw-w5-enriched {
        margin-top: 10px;
        margin-bottom: 22px;

        font-size: .9rem;
        line-height: 2;
    }

}
